Function at 0x85e9dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
and dword [esp + 4], 0
mov eax, ecx
push ebx
push esi
push edi
mov esi, dword [eax + 8]
mov edi, edx
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], esi
call fcn.00844fbd
mov ebx, dword [edi + 0x24]
mov ecx, eax
and bl, 0x20
mov dword [esp + 0x18], ecx
neg bl
sbb bl, bl
and bl, 0xfd
add bl, 0x20
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x28], ebx
jne 0x85ea3d
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00844f6e
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov edx, edi
push 0
push 0
call fcn.00861a43
pop ecx
pop ecx
test eax, eax
jne 0x85ea67
cmp dword [ebp + 8], eax
jne 0x85ea67
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x85eb98
movzx eax, byte [ebp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push eax
push edi
push 3
push 0
push 0
mov dword [esp + 0x40], eax
call fcn.0086f2a7
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov edx, edi
mov dword [esp + 0x1c], eax
call fcn.00861974
mov edx, dword [esp + 0xc]
or dword [esp + 0x1c], eax
mov ecx, dword [edx + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
movsx eax, word [edi + 0x2a]
inc eax
add eax, ecx
mov dword [edx + 0x2c], eax
lea eax, [ecx + 1]
push eax
push dword [ebp + 0x14]
mov ecx, esi
push 0x4b
pop edx
call fcn.00844d77
pop ecx
pop ecx
xor ecx, ecx
xor edx, edx
or eax, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
cmp dx, word [edi + 0x2a]
jge 0x85eb1d
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x85eaf0
cmp ecx, 0x1f
jg 0x85eb0c
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
je 0x85eb0c
mov eax, dword [esp + 0x10]
mov edx, edi
inc eax
add eax, ecx
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00855062
mov ecx, dword [esp + 0x30]
add esp, 0xc
movsx eax, word [edi + 0x2a]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x85eadd
mov ebx, dword [esp + 0x28]
mov ecx, esi
call fcn.00845161
push dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov esi, eax
push dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
push edi
push 1
push 0
push 0x6e
call fcn.0086f253
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
call fcn.00845161
cmp esi, eax
mov esi, ecx
jge 0x85eb74
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push dword [esp + 0x20]
push dword [ebp + 0xc]
call fcn.00844f6e
add esp, 0x10
jmp 0x85eb7b
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
call fcn.008615a7
mov eax, dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
cmp dword [edi + 0xc], ecx
jne 0x85ec2e
push eax
push ecx
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.0085ec71
xor eax, eax
mov ecx, esi
cmp byte [ebp + 0x1c], al
setne al
push eax
push dword [ebp + 0xc]
push 0x78
pop edx
call fcn.00844d77
add esp, 0x18
cmp byte [ebx + 0x12], 0
je 0x85ebe5
push 0x4a4958
push dword [edi]
call fcn.0082fd05
pop ecx
pop ecx
test eax, eax
jne 0x85ebf1
push 0xfffffffffffffffa
mov edx, edi
mov ecx, esi
call fcn.0084551b
pop ecx
cmp byte [ebp + 0x24], 0
je 0x85ec01
push 4
pop edx
mov ecx, esi
call fcn.00845280
mov eax, dword [esp + 0x14]
test eax, eax
js 0x85ec1a
cmp eax, dword [ebp + 0xc]
je 0x85ec1a
push eax
push 0x78
pop edx
mov ecx, esi
call fcn.00844d63
pop ecx
push 2
pop edx
xor eax, eax
mov ecx, esi
cmp byte [ebp + 0x24], dl
cmovne edx, eax
call fcn.00845280
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.00861f35
push dword [esp + 0x28]
movzx eax, byte [ebp + 0x20]
mov ecx, ebx
mov edx, dword [ebp + 8]
push eax
push dword [esp + 0x28]
push edi
push 2
push 0
push 0x6e
call fcn.0086f253
mov edx, dword [esp + 0x44]
add esp, 0x2c
mov ecx, esi
call fcn.00844fff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret