Function at 0x85b039
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [ebp - 0x28], edx
push esi
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
jne 0x85b05d
test eax, eax
je 0x85b3f3
mov edi, dword [ebx + 0x1ac]
test edi, edi
je 0x85b3f3
cmp byte [esi + 0x9d], 0
je 0x85b09b
test eax, eax
je 0x85b08a
push 0x49a1c0
push ebx
call fcn.0082fc54
pop ecx
pop ecx
jmp 0x85b3f3
mov eax, dword [esi + 0x98]
mov dword [edi + 0x1c], eax
cmp eax, 1
jne 0x85b09b
or dword [edi + 0x24], eax
test byte [ebp + 0xc], 0x20
je 0x85b0d2
mov eax, dword [edi + 0x24]
test al, 8
je 0x85b0af
push 0x4a4e4c
jmp 0x85b07d
test al, 4
jne 0x85b0c5
push dword [edi]
push 0x4a4e80
push ebx
call fcn.0082fc54
add esp, 0xc
jmp 0x85b0d2
or eax, 0x60
mov edx, edi
mov dword [edi + 0x24], eax
call fcn.0085ad32
mov edx, dword [edi + 0x48]
mov ecx, esi
call fcn.00867d8e
cmp dword [edi + 0x18], 0
mov dword [ebp - 0xc], eax
je 0x85b0f8
push dword [edi + 0x18]
mov edx, edi
mov ecx, ebx
push 0
push 4
call fcn.008522d4
add esp, 0xc
mov ecx, edi
call fcn.0085ac74
mov eax, dword [edi + 8]
test eax, eax
je 0x85b119
mov esi, eax
mov ecx, esi
call fcn.0085acb6
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x85b108
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x9d], 0
jne 0x85b3a6
mov ecx, ebx
call fcn.00869fa5
mov dword [ebp - 8], eax
test eax, eax
je 0x85b3f3
push 0
push 0x72
pop edx
mov ecx, eax
call fcn.00844d63
mov eax, dword [edi + 0xc]
mov edx, 0x4a4ea8
test eax, eax
pop ecx
mov ecx, 0x4a4eb8
cmove ecx, edx
mov edx, 0x4a4ea0
mov dword [ebp - 0x20], ecx
mov ecx, 0x4a4eb0
cmove ecx, edx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x24], ecx
je 0x85b2da
inc dword [ebx + 0x2c]
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0x18], eax
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x2c], eax
call fcn.0085d505
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push dword [ebx + 0x64]
push 1
push 0x6b
pop edx
call fcn.00844cf3
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0x10
pop edx
call fcn.00845280
mov dword [ebx + 0x28], 2
call fcn.00845161
inc eax
push eax
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push 0xf
pop edx
call fcn.00844cf3
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x85b3f3
mov edx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.00869efc
test eax, eax
je 0x85b3f3
mov cx, word [eax + 0x2a]
mov edx, eax
mov word [edi + 0x2a], cx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
xor ecx, ecx
and dword [eax + 4], ecx
mov word [eax + 0x2a], cx
mov ecx, esi
call fcn.00859d86
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push esi
push 0xd
pop edx
call fcn.008683c5
mov edx, dword [ebp + 0x10]
add esp, 4
mov eax, ecx
mov ecx, ebx
push eax
call fcn.0086cdac
cmp dword [ebx + 0x24], 0
pop ecx
jne 0x85b3f3
mov edx, esi
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00844fa0
mov edx, dword [ebp - 0x20]
mov ecx, esi
lea edx, [edx - 1]
call fcn.00845298
push dword [ebp - 0x3c]
mov ecx, esi
push 0x10
pop edx
call fcn.00844d63
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x65
pop edx
call fcn.00844cf3
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, edi
push 0
call fcn.0086216b
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push 1
push 0x75
pop edx
call fcn.00844d77
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x18]
push 1
push 0x76
pop edx
call fcn.00844cf3
mov ecx, dword [ebp - 8]
add esp, 0x14
mov edx, esi
call fcn.00844d8c
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.00845298
mov ecx, dword [ebp - 8]
push 1
push 0x72
pop edx
call fcn.00844d63
mov esi, dword [ebp - 0x1c]
mov edx, edi
pop ecx
mov ecx, esi
call fcn.0085aa6f
jmp 0x85b314
cmp byte [ebp + 0xc], 0
lea eax, [ebx + 0x184]
mov edx, dword [ebp + 8]
cmovne edx, eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebx + 0x17c]
cmp byte [eax], 0x3b
je 0x85b2fc
add ecx, dword [edx + 4]
push dword [ebx + 0x17c]
push ecx
push dword [ebp - 0x20]
push 0x4a4ec0
push esi
call fcn.0082f157
add esp, 0x14
push dword [ebx + 0x60]
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x1c], eax
push dword [edi]
mov eax, dword [esi + 0x10]
push dword [edi]
shl ecx, 4
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
push 0x4a3d18
push dword [eax + ecx]
push 0x4a4ed0
push ebx
call fcn.008597b9
mov edx, dword [ebp - 0x1c]
add esp, 0x28
mov ecx, esi
call fcn.0082d90a
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0085a98e
test byte [edi + 0x24], 8
je 0x85b380
mov ecx, dword [esi + 0x10]
add ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x85b380
push dword [ecx]
push 0x4a4f28
push ebx
call fcn.008597b9
add esp, 0xc
push dword [edi]
push 0x4a4f54
push esi
call fcn.0082f157
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
push eax
call fcn.00844f32
cmp byte [esi + 0x9d], 0
pop ecx
je 0x85b3f3
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
push edi
lea ecx, [ecx + 8]
call fcn.008310b0
pop ecx
test eax, eax
je 0x85b3c2
mov ecx, esi
call fcn.0082dd84
jmp 0x85b3f3
xor eax, eax
mov dword [ebx + 0x1ac], eax
or dword [esi + 0x18], 1
cmp dword [edi + 0xc], eax
jne 0x85b3f3
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x17c]
cmp dword [edx], eax
mov eax, dword [ebp + 8]
cmovne eax, edx
mov edx, dword [eax]
sub edx, ecx
call fcn.0082fa4a
add eax, 0xd
mov dword [edi + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret