Function at 0x485fcf
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4e6e00]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x486018
push 0xffffffffffffff9a
pop eax
jmp 0x4864c3
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x486025
cmp eax, 8
jne 0x486010
cmp dword [edi + 0x38], 1
jne 0x48603e
push edi
call fcn.00485961
pop ecx
test eax, eax
jne 0x4864c3
mov ecx, dword [esp + 0x18]
push ebx
test ebp, ebp
mov ebx, 0x4c24b4
cmovne ebx, ebp
mov dword [esp + 0x24], ebx
test ecx, ecx
jne 0x486057
and dword [esp + 0x14], ecx
jmp 0x486062
push ecx
call fcn.004911e0
pop ecx
mov dword [esp + 0x14], eax
push ebx
call fcn.004911e0
mov dword [esp + 0x1c], eax
pop ecx
test esi, esi
jne 0x486079
and dword [edi + 0x100a4], esi
jmp 0x48608d
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x486087
push esi
call fcn.0048546b
pop ecx
mov dword [edi + 0x100a4], eax
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x84]
mov dword [edi + 0x98], eax
cmp ebp, 8
je 0x4860a8
cmp ebp, 9
jne 0x4860b1
or eax, 2
mov dword [edi + 0x98], eax
cmp ebp, 2
jne 0x4860bd
or dword [edi + 0x98], 4
cmp ebp, 1
jne 0x4860c9
or dword [edi + 0x98], 6
cmp dword [esp + 0x20], 0
je 0x4860d7
or dword [edi + 0x98], 1
push dword [edi + 0x2c]
mov eax, dword [esp + 0x64]
and dword [edi + 0x100a8], 0
and dword [edi + 0x100ac], 0
and dword [edi + 0x78], 0
and dword [edi + 0x7c], 0
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x6c]
push edi
mov dword [edi + 0xa0], eax
call fcn.00489afb
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x80], eax
add ecx, 0x2e
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
add eax, ecx
mov dword [edi + 0x84], edx
mov dword [edi + 0x90], eax
add eax, 0x20
push eax
mov dword [edi + 0x94], 0x20
call fcn.0048e417
mov ecx, dword [esp + 0x1c]
push 4
push 0
push 0x2014b50
push eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], ecx
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 2
push 0
push dword [esp + 0xa4]
add eax, 4
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 2
push 0
add eax, 6
push 0x14
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 2
push 0
push dword [edi + 0x98]
add eax, 8
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
add esp, 0x4c
add eax, 0xa
push 2
push 0
push dword [edi + 0x9c]
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 4
push 0
push dword [edi + 0x100a4]
add eax, 0xc
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 4
push 0
add eax, 0x10
push 0
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 4
push 0
add eax, 0x14
push 0
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
add esp, 0x40
add eax, 0x18
push 4
push 0
push 0
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 2
push 0
push dword [esp + 0x30]
add eax, 0x1c
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 2
push 0
push dword [esp + 0x38]
add eax, 0x1e
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 2
push 0
push dword [esp + 0x4c]
add eax, 0x20
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
add esp, 0x40
add eax, 0x22
push 2
push 0
push 0
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
add esp, 0x10
add eax, 0x24
push 2
test esi, esi
jne 0x4862ad
push esi
push esi
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 4
push esi
add eax, 0x26
push esi
push eax
call fcn.004857bc
add esp, 0x20
jmp 0x4862d3
push 0
push dword [esi + 0x1c]
push eax
call fcn.004857bc
mov eax, dword [edi + 0x88]
push 4
push 0
push dword [esi + 0x20]
add eax, 0x26
push eax
call fcn.004857bc
add esp, 0x20
xor esi, esi
cmp dword [edi + 0x84], esi
ja 0x4862fe
cmp dword [edi + 0x80], 0xffffffff
jae 0x4862fe
mov ecx, dword [edi + 0x80]
xor eax, eax
sub ecx, dword [edi + 0x100f0]
push 4
sbb eax, dword [edi + 0x100f4]
push eax
push ecx
jmp 0x486303
push 4
push esi
push 0xffffffffffffffff
mov eax, dword [edi + 0x88]
add eax, 0x2a
push eax
call fcn.004857bc
mov edx, esi
add esp, 0x10
mov esi, dword [esp + 0x18]
test esi, esi
je 0x486331
mov ecx, dword [edi + 0x88]
mov al, byte [ebx + edx]
mov byte [ecx + edx + 0x2e], al
inc edx
cmp edx, esi
jb 0x48631f
xor edx, edx
cmp dword [esp + 0x10], edx
jbe 0x48635d
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x54]
mov ecx, dword [edi + 0x88]
mov al, byte [edx + ebx]
add ecx, edx
inc edx
mov byte [ecx + esi + 0x2e], al
cmp edx, ebp
jb 0x486341
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x64]
xor edx, edx
cmp dword [esp + 0x14], edx
jbe 0x48638f
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0x88]
mov eax, dword [esp + 0x1c]
add ecx, ebx
add ecx, edx
mov al, byte [eax + edx]
inc edx
mov byte [ecx + esi + 0x2e], al
cmp edx, ebp
jb 0x48636d
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x64]
xor esi, esi
cmp dword [edi + 0x88], esi
jne 0x4863a1
push 0xffffffffffffff98
pop eax
jmp 0x4864c2
push dword [esp + 0x28]
mov eax, dword [esp + 0x8c]
push dword [esp + 0x54]
mov dword [edi + 0x100b0], eax
push ebx
push edi
mov dword [edi + 0x100c0], esi
mov dword [edi + 0x100c4], esi
mov dword [edi + 0x100c8], esi
mov dword [edi + 0x100cc], esi
mov dword [edi + 0x100b8], esi
mov dword [edi + 0x100bc], esi
call fcn.00484950
mov ebx, eax
mov dword [edi + 0x44], esi
add esp, 0x10
mov dword [edi + 0x50], 0x10000
mov dword [edi + 0x48], esi
lea ecx, [edi + 0xa4]
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x54], esi
mov dword [edi + 0x6c], esi
test ebx, ebx
jne 0x486456
cmp dword [edi + 0x9c], 8
jne 0x486456
cmp dword [edi + 0xa0], esi
jne 0x486456
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
mov dword [edi + 0x68], esi
test eax, eax
jle 0x48642a
neg eax
push 0x38
push 0x4c2d80
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push eax
push 8
lea eax, [edi + 0x40]
push ebp
push eax
call fcn.00488e13
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x486456
mov dword [edi + 0x78], 8
mov dword [edi + 0x100e0], esi
test ebx, ebx
jne 0x4864c0
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4864b9
mov dword [edi + 0x100ac], 1
call fcn.00489a8c
push dword [esp + 0x7c]
mov dword [edi + 0x100dc], eax
push eax
lea eax, [edi + 0x100d0]
push eax
push 0xc
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.00484d74
mov esi, eax
lea eax, [esp + 0x44]
push esi
push eax
push dword [edi + 0x2c]
mov dword [edi + 0x100e0], esi
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x28
cmp eax, esi
je 0x4864b9
or ebx, 0xffffffff
jmp 0x4864c0
mov dword [edi + 0x38], 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00495535
add esp, 0x2c
ret