Function at 0x49127a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1015dd88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x40]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], eax
jne 0x4912c2
push 0xffffffffffffff9a
pop eax
jmp 0x4916df
cmp dword [ebp + 0x28], ebx
je 0x4912cd
cmp dword [ebp + 0x28], 8
jne 0x4912ba
cmp dword [edi + 0x38], 1
jne 0x4912e2
push edi
call fcn.004910fc
cmp eax, ebx
pop ecx
jne 0x4916df
cmp dword [ebp - 0x14], ebx
jne 0x4912ee
mov dword [ebp - 0x14], 0x101210e0
cmp dword [ebp - 0x2c], ebx
jne 0x4912f8
mov dword [ebp - 0x18], ebx
jmp 0x491304
push dword [ebp - 0x2c]
call fcn.004f13a4
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
call fcn.004f13a4
mov edx, dword [ebp - 0x28]
cmp edx, ebx
pop ecx
mov dword [ebp - 0x20], eax
jne 0x49131f
mov dword [edi + 0x100a4], ebx
jmp 0x491331
mov eax, dword [edx + 0x18]
cmp eax, ebx
jne 0x49132b
call fcn.0048f837
mov dword [edi + 0x100a4], eax
mov ecx, dword [ebp + 0x2c]
cmp ecx, 8
mov eax, dword [ebp + 0x4c]
mov dword [edi + 0x98], eax
je 0x491347
cmp ecx, 9
jne 0x491350
or eax, 2
mov dword [edi + 0x98], eax
cmp ecx, 2
jne 0x49135c
or dword [edi + 0x98], 4
cmp ecx, 1
jne 0x491368
or dword [edi + 0x98], 6
cmp dword [ebp - 0x24], ebx
je 0x491374
or dword [edi + 0x98], 1
mov eax, dword [ebp + 0x28]
push dword [edi + 0x2c]
mov dword [edi + 0x9c], eax
mov eax, dword [ebp + 0x30]
push edi
mov dword [edi + 0x100a8], ebx
mov dword [edi + 0x100ac], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0xa0], eax
call fcn.0048d483
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0x20]
add eax, esi
lea eax, [eax + ecx + 0x2e]
mov dword [edi + 0x90], eax
add eax, 0x20
push eax
mov dword [edi + 0x84], edx
mov dword [edi + 0x94], 0x20
call dword [0x1010d550]
push ebx
push 0x2014b50
mov dword [edi + 0x8c], esi
push 4
pop esi
mov edx, eax
mov dword [edi + 0x88], eax
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp + 0x48]
add edx, esi
push 2
pop esi
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push 0x14
add edx, 6
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [edi + 0x98]
add edx, 8
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [edi + 0x9c]
add edx, 0xa
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [edi + 0x100a4]
add edx, 0xc
push 4
pop esi
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push ebx
add edx, 0x10
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
add esp, 0x44
push ebx
push ebx
add edx, 0x14
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push ebx
add edx, 0x18
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp - 0x20]
add edx, 0x1c
push 2
pop esi
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp - 0x1c]
add edx, 0x1e
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp - 0x18]
add edx, 0x20
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
push ebx
push ebx
add edx, 0x22
call fcn.0048f7fa
mov edx, dword [edi + 0x88]
mov eax, dword [ebp - 0x28]
add esp, 0x30
add edx, 0x24
cmp eax, ebx
push ebx
jne 0x4914f2
push ebx
call fcn.0048f7fa
pop ecx
pop ecx
push ebx
push ebx
jmp 0x491506
push dword [eax + 0x1c]
push 2
pop esi
call fcn.0048f7fa
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
push ebx
push dword [eax + 0x20]
mov edx, dword [edi + 0x88]
push 4
pop esi
add edx, 0x26
call fcn.0048f7fa
cmp dword [edi + 0x84], ebx
pop ecx
pop ecx
ja 0x49152a
cmp dword [edi + 0x80], 0xffffffff
jb 0x49152f
push ebx
push 0xffffffffffffffff
jmp 0x491545
mov eax, dword [edi + 0x80]
xor ecx, ecx
sub eax, dword [edi + 0x100f0]
sbb ecx, dword [edi + 0x100f4]
push ecx
push eax
mov edx, dword [edi + 0x88]
push 4
pop esi
add edx, 0x2a
call fcn.0048f7fa
mov esi, dword [ebp - 0x20]
pop ecx
xor eax, eax
cmp esi, ebx
pop ecx
jbe 0x491576
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + eax]
mov ecx, dword [edi + 0x88]
mov byte [ecx + eax + 0x2e], dl
inc eax
cmp eax, esi
jb 0x491561
xor eax, eax
cmp dword [ebp - 0x1c], ebx
jbe 0x491595
mov ecx, dword [edi + 0x88]
mov edx, dword [ebp + 0x1c]
mov dl, byte [eax + edx]
add ecx, eax
inc eax
cmp eax, dword [ebp - 0x1c]
mov byte [ecx + esi + 0x2e], dl
jb 0x49157d
xor eax, eax
cmp dword [ebp - 0x18], ebx
jbe 0x4915b7
mov ecx, dword [edi + 0x88]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov dl, byte [edx + eax]
add ecx, eax
inc eax
cmp eax, dword [ebp - 0x18]
mov byte [ecx + esi + 0x2e], dl
jb 0x49159c
cmp dword [edi + 0x88], ebx
jne 0x4915c6
push 0xffffffffffffff98
jmp 0x4912bc
push dword [ebp - 0x30]
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x18]
mov dword [edi + 0x100b0], eax
push dword [ebp - 0x14]
mov dword [edi + 0x100c0], ebx
push edi
mov dword [edi + 0x100c4], ebx
mov dword [edi + 0x100c8], ebx
mov dword [edi + 0x100cc], ebx
mov dword [edi + 0x100b8], ebx
mov dword [edi + 0x100bc], ebx
call fcn.00490535
mov esi, eax
add esp, 0x10
cmp esi, ebx
lea eax, [edi + 0xa4]
mov dword [edi + 0x44], ebx
mov dword [edi + 0x50], 0x10000
mov dword [edi + 0x4c], eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x6c], ebx
jne 0x491677
cmp dword [edi + 0x9c], 8
jne 0x491677
cmp dword [edi + 0xa0], ebx
jne 0x491677
cmp dword [ebp + 0x34], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
jle 0x491649
neg dword [ebp + 0x34]
push 0x38
push 0x10121084
push dword [ebp + 0x3c]
lea eax, [edi + 0x40]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push 8
push dword [ebp + 0x2c]
push eax
call fcn.00403050
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x491677
mov dword [edi + 0x78], 8
cmp esi, ebx
mov dword [edi + 0x100e0], ebx
jne 0x4916dd
cmp dword [ebp - 0x24], ebx
je 0x4916d6
mov dword [edi + 0x100ac], 1
call fcn.00401000
push dword [ebp + 0x44]
lea ecx, [ebp - 0x10]
push 0xc
push ecx
mov ecx, dword [ebp - 0x24]
lea ebx, [edi + 0x100d0]
mov edx, eax
mov dword [edi + 0x100dc], eax
call fcn.0048f51e
mov ebx, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x2c]
mov dword [edi + 0x100e0], ebx
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x1c
cmp eax, ebx
je 0x4916d6
or esi, 0xffffffff
jmp 0x4916dd
mov dword [edi + 0x38], 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1032
leave
ret