Function at 0x859f93
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 8], eax
inc ecx
mov esi, 0x4a4c40
mov ebx, dword [edi]
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 0x9d], 0
je 0x859fde
cmp dword [ebx + 0x98], ecx
jne 0x859fde
movzx eax, byte [ebx + 0x9c]
mov edx, 0x4a3d18
cmp eax, ecx
mov dword [ebp - 4], eax
mov ecx, ebx
cmove edx, esi
call fcn.0082dc8c
jmp 0x85a033
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
mov ecx, edi
call fcn.00859eab
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
js 0x85a123
cmp dword [ebp + 0xc], 0
je 0x85a024
cmp dword [esi + 4], 0
jbe 0x85a01d
cmp eax, 1
je 0x85a01d
push 0x4a4cd8
push edi
call fcn.0082fc54
pop ecx
pop ecx
jmp 0x85a123
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, ebx
mov edx, eax
mov dword [ebp - 8], eax
call fcn.00859dd0
mov ecx, dword [ebp - 8]
mov esi, eax
mov eax, dword [ecx]
mov dword [edi + 0x17c], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x180], eax
test esi, esi
je 0x85a123
mov edx, esi
mov ecx, edi
call fcn.00859f0f
test eax, eax
jne 0x85a11a
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ebx + 0x10]
inc edx
cmp byte [ebx + 0x9c], dl
cmovne edx, dword [ebp + 0xc]
shl ecx, 4
cmp edx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + eax]
mov ecx, 0x4a4c40
push eax
mov dword [ebp - 0xc], eax
mov eax, 0x4a3d18
push 0
cmove eax, ecx
mov ecx, edi
push eax
push 0x12
pop edx
call fcn.0085944e
add esp, 0xc
test eax, eax
jne 0x85a11a
cmp dword [ebp + 0x14], eax
jne 0x85a0cf
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push esi
movzx edx, byte [eax + ecx*2 + 0x49cdec]
mov ecx, edi
call fcn.0085944e
add esp, 0xc
test eax, eax
jne 0x85a11a
cmp byte [edi + 0x190], 0
jne 0x85a14c
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax]
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.00867ca2
test eax, eax
jne 0x85a11a
push dword [ebp - 0xc]
mov edx, esi
mov ecx, ebx
call fcn.00859853
pop ecx
test eax, eax
je 0x85a12a
cmp dword [ebp + 0x18], 0
jne 0x85a110
push dword [ebp - 8]
push 0x4a4d04
jmp 0x85a141
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.0085d442
mov edx, esi
mov ecx, ebx
call fcn.0082d90a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
mov edx, esi
mov ecx, ebx
call fcn.00859a17
pop ecx
test eax, eax
je 0x85a14c
push esi
push 0x4a4d1c
push edi
call fcn.0082fc54
add esp, 0xc
jmp 0x85a11a
push 0
push 0x50
mov ecx, ebx
call fcn.0082dac0
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x85a16b
inc dword [edi + 0x24]
mov dword [edi + 0xc], 7
jmp 0x85a11a
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov word [ecx + 0x28], ax
mov dword [ecx], esi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx + 0xc]
mov dword [ecx + 0x48], eax
mov eax, 0xc8
mov dword [ecx + 0x20], 1
mov word [ecx + 0x2c], ax
cmp byte [edi + 0x12], 0
mov dword [edi + 0x1ac], ecx
jne 0x85a1bc
xor edx, edx
movzx eax, byte [esi + edx]
mov ebx, 0x4a4700
cmp al, byte [ebx + edx]
mov ebx, dword [ebp - 0x18]
jne 0x85a1bc
inc edx
cmp edx, 0x10
jne 0x85a19f
mov eax, dword [ecx + 0x48]
mov dword [eax + 0x48], ecx
cmp byte [ebx + 0x9d], 0
jne 0x85a123
mov ecx, edi
call fcn.00869fa5
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x85a123
push dword [ebp - 4]
xor edx, edx
mov ecx, edi
inc edx
call fcn.0085d4cb
cmp dword [ebp + 0x14], 0
pop ecx
je 0x85a1fd
mov edx, 0x9b
mov ecx, esi
call fcn.00844d55
mov eax, dword [edi + 0x2c]
mov ecx, esi
inc eax
mov dword [ebp - 8], eax
mov dword [edi + 0x60], eax
inc eax
push 2
mov dword [edi + 0x64], eax
inc eax
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x67
pop edx
mov dword [edi + 0x2c], eax
call fcn.00844cf3
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, esi
call fcn.008457d6
push dword [ebp - 0xc]
mov ecx, esi
push 0x15
pop edx
call fcn.00844d63
test byte [ebx + 0x1c], 2
mov esi, eax
pop ecx
push 4
pop ecx
push 1
pop eax
cmovne ecx, eax
push ecx
mov ecx, dword [ebp - 0x10]
push 2
push dword [ebp - 4]
push 0x68
pop edx
call fcn.00844cf3
movzx eax, byte [ebx + 0x46]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push eax
push 5
push dword [ebp - 4]
push 0x68
pop edx
call fcn.00844cf3
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00845298
cmp dword [ebp + 0x10], 0
jne 0x85a2b2
cmp dword [ebp + 0x14], 0
jne 0x85a2b2
xor eax, eax
mov edx, 0x89
inc eax
mov ecx, ebx
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
push dword [ebp - 4]
call fcn.00844cf3
add esp, 0xc
mov dword [edi + 0x80], eax
jmp 0x85a2c5
mov eax, dword [ebp - 8]
mov ecx, ebx
inc eax
push eax
push 0
push 0x43
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.00859df2
mov edi, dword [ebp - 8]
mov ecx, ebx
push edi
push 0
push 0x75
pop edx
call fcn.00844d77
mov esi, dword [ebp - 0xc]
mov ecx, ebx
push 0xffffffffffffffff
push 0x49c9f8
push 0
push esi
push 6
push 0x48
pop edx
call fcn.00844e3d
add esp, 0x1c
mov ecx, ebx
push edi
push esi
push 0
push 0x76
pop edx
call fcn.00844cf3
add esp, 0xc
mov ecx, ebx
push 8
pop edx
call fcn.00845280
push 0x72
pop edx
call fcn.00844d55
jmp 0x85a123