Function at 0x858064
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
xor eax, eax
inc eax
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
inc eax
push ebx
mov dword [ebp + 0x10], eax
inc eax
mov ebx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ebx
inc ebx
mov dword [ebp - 0x10], ebx
inc ebx
mov dword [ebp - 0x3c], ebx
inc ebx
mov dword [ebp - 0x48], ebx
inc ebx
mov dword [ebp - 0x44], ebx
inc ebx
cmp dword [ecx + 0x2c], ebx
mov eax, ebx
push esi
cmovg eax, dword [ecx + 0x2c]
mov esi, edx
push edi
mov dword [ebp - 0x4c], esi
mov dword [ecx + 0x2c], eax
call fcn.00869fa5
mov edi, eax
test edi, edi
je 0x858522
test esi, esi
je 0x858522
cmp dword [esi + 0x1c], 0
je 0x858522
push 0x5c
push dword [esi]
push 0x4a4a04
call fcn.0085fb68
add esp, 0xc
test eax, eax
je 0x858522
mov edx, dword [esi + 0x48]
mov ecx, dword [ebp - 0x34]
call fcn.00867d8e
mov ecx, dword [ecx + 0x10]
mov edx, eax
add edx, edx
mov dword [ebp - 0x24], eax
push dword [ecx + edx*8]
mov ecx, dword [ebp - 0xc]
push 0
push dword [esi]
push 0x1c
pop edx
call fcn.0085944e
add esp, 0xc
test eax, eax
jne 0x858522
push dword [esi]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
push eax
push dword [esi + 0x1c]
call fcn.008594f7
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, eax
inc eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x18], eax
inc eax
push 0x6a
cmp dword [ecx + 0x28], eax
push esi
cmovg eax, dword [ecx + 0x28]
push dword [ebp - 0x24]
mov dword [ecx + 0x28], eax
call fcn.0086202c
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, edi
push dword [esi]
call fcn.00844d9d
mov esi, dword [esi + 8]
pop ecx
jmp 0x858480
cmp dword [ebp + 8], 0
je 0x85817c
cmp dword [ebp + 8], esi
jne 0x85847d
movzx eax, byte [ebp - 1]
xor ecx, ecx
cmp dword [esi + 0x24], ecx
cmovne ecx, eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x4c]
test byte [ecx + 0x24], 0x20
je 0x8581a8
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x8581a8
movzx eax, word [esi + 0x32]
mov ecx, dword [ecx]
mov dword [ebp - 0x38], eax
jmp 0x8581bb
test byte [esi + 0x38], 8
movzx eax, word [esi + 0x34]
mov ecx, dword [esi]
mov dword [ebp - 0x38], eax
je 0x8581bb
movzx eax, word [esi + 0x32]
mov edx, dword [ebp - 0x48]
dec eax
push ecx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00844d9d
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0xc]
add eax, ebx
push dword [ebp - 0x24]
cmp dword [ecx + 0x2c], eax
cmovg eax, dword [ecx + 0x2c]
mov dword [ecx + 0x2c], eax
mov ecx, edi
push dword [esi + 0x2c]
push dword [ebp - 0x18]
push 0x6a
pop edx
call fcn.00844cf3
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, esi
call fcn.0084554f
push dword [ebp - 0x40]
mov ecx, edi
push dword [ebp - 0x38]
push 0x43
pop edx
call fcn.00844d77
mov eax, dword [ebp + 0x10]
mov ecx, edi
add eax, 2
push eax
movzx eax, word [esi + 0x32]
push eax
push 0x43
pop edx
call fcn.00844d77
push 0xfffffffffffffff8
push 0x49e0c0
push dword [ebp + 0x10]
mov edx, 0xa4
mov ecx, edi
push dword [ebp - 0x40]
push 0
call fcn.00844e3d
add esp, 0x24
mov ecx, edi
push 2
pop edx
call fcn.00845280
push dword [ebp - 0x18]
push 0x25
pop edx
call fcn.00844d63
pop ecx
push dword [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 0x50], eax
push 0
push 0x43
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov ecx, edi
call fcn.00845161
cmp dword [ebp - 8], 0
mov dword [ebp - 0x38], eax
jle 0x8583db
call fcn.00844fbd
mov ecx, dword [ebp - 8]
shl ecx, 2
push 0
push ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
call fcn.0082db2c
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
je 0x85847d
push 0xd
pop edx
mov ecx, edi
call fcn.00844d55
mov ecx, edi
call fcn.00845161
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
inc ecx
cmp eax, ecx
jne 0x8582e2
cmp word [esi + 0x32], cx
jne 0x8582e2
cmp byte [esi + 0x36], 0
je 0x8582e2
push dword [ebp - 0x2c]
mov ecx, edi
push ebx
push 0x33
pop edx
call fcn.00844d77
mov eax, dword [ebp - 8]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
jle 0x85835f
mov edx, dword [esi + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0xc]
call fcn.0085a94f
push dword [ebp - 0x28]
mov ecx, edi
mov esi, eax
push dword [ebp - 0x14]
push 0x43
pop edx
call fcn.00844d77
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x62
pop edx
call fcn.00844cf3
add esp, 0x14
mov ecx, edi
push 0xfffffffffffffffe
push esi
mov esi, dword [ebp - 0x14]
lea eax, [esi + ebx]
push eax
push 0
push dword [ebp - 0x10]
push 0x34
pop edx
call fcn.00844e3d
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov edx, 0x80
mov dword [ecx + esi*4], eax
mov ecx, edi
call fcn.00845280
mov eax, dword [ebp - 8]
mov ecx, esi
mov esi, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x8582eb
push dword [ebp - 0x28]
mov ecx, edi
push eax
push 0x43
pop edx
call fcn.00844d77
mov edx, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, edi
call fcn.00844d8c
mov edx, dword [ebp - 0x38]
mov ecx, edi
lea edx, [edx - 1]
call fcn.00845298
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], eax
jle 0x8583c6
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax*4]
mov ecx, edi
call fcn.00845298
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + ebx]
push eax
push ecx
push dword [ebp - 0x18]
mov ecx, edi
push 0x62
pop edx
call fcn.00844cf3
mov eax, dword [ebp - 0x14]
add esp, 0xc
inc eax
mov dword [ebp - 0x14], eax
cmp eax, esi
jl 0x858393
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00844fff
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.0082d90a
push 0xfffffffffffffff8
push 0x49fff0
push dword [ebp - 0x10]
xor eax, eax
mov edx, 0xa4
push dword [ebp + 0x10]
inc eax
mov ecx, edi
push eax
call fcn.00844e3d
add esp, 0x14
mov ecx, edi
push 2
pop edx
call fcn.00845280
push dword [ebp - 0x38]
push dword [ebp - 0x18]
push 7
pop edx
call fcn.00844d77
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
push dword [ebp - 0x44]
push ecx
mov ecx, edi
call fcn.00858035
push 0
push 0x4a4a10
push dword [ebp - 0x10]
mov ecx, edi
push 3
push dword [ebp - 0x3c]
push 0x65
pop edx
call fcn.00844e3d
add esp, 0x1c
mov ecx, edi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push 0x75
pop edx
call fcn.00844d77
push dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0x76
pop edx
call fcn.00844cf3
add esp, 0x14
mov ecx, edi
push 8
pop edx
call fcn.00845280
mov edx, dword [ebp - 0x50]
call fcn.00845298
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x85816d
cmp dword [ebp + 8], 0
jne 0x858522
mov al, byte [ebp - 1]
test al, al
je 0x858522
mov ebx, dword [ebp - 0x44]
mov ecx, edi
push ebx
push dword [ebp - 0x54]
push 0x66
pop edx
call fcn.00844d77
push ebx
push 0x16
pop edx
mov ecx, edi
call fcn.00844d63
add esp, 0xc
mov ecx, edi
mov esi, eax
push dword [ebp - 0x48]
push 0
push 0x46
pop edx
call fcn.00844d77
mov ebx, dword [ebp - 0x10]
mov ecx, edi
push 0
push 0x4a4a10
push ebx
push 3
push dword [ebp - 0x3c]
push 0x65
pop edx
call fcn.00844e3d
add esp, 0x1c
mov ecx, edi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push 0x75
pop edx
call fcn.00844d77
push dword [ebp - 0x20]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push 0x76
pop edx
call fcn.00844cf3
add esp, 0x14
mov ecx, edi
push 8
pop edx
call fcn.00845280
mov edx, esi
call fcn.00845298
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret