Function at 0x592f10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jl 0x592f40
mov ecx, dword [0x84f880]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ecx + ebx*4]
mov edi, dword [esi + 0x80]
jmp 0x592f42
xor edi, edi
mov ecx, dword [eax*4 + 0x8504fc]
mov dword [ebp - 0x10], ecx
lea esi, [eax + eax*2]
shl esi, 7
mov dword [ebp - 0x28], esi
lea esi, [esi + edx + 0x200]
mov ebx, 1
shl ebx, cl
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5930be
mov dword [ebp - 0x40], 0
lea ecx, [esi + 0x80]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x80]
cmp ecx, 4
je 0x5930ab
mov ecx, dword [0x8362c4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [0x836270]
cmp ecx, 0x7fffffff
je 0x592fbb
mov ecx, dword [0x84f980]
add ecx, dword [edx + 0x9c]
mov dword [ebp - 0x1c], ecx
jmp 0x592fc0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x80]
cmp ecx, 4
je 0x5930ab
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [0x8362b0]
test eax, eax
je 0x592ffa
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + 0x19c]
test ebx, ebx
jne 0x5931d7
jmp 0x592ffc
xor ebx, ebx
mov eax, dword [0x84fa04]
test eax, eax
jne 0x593242
call fcn.005a3fd0
mov edx, dword [0x84f900]
xor eax, eax
cmp edx, dword [0x85052c]
setg al
push eax
call fcn.005a066c
pop ecx
call fcn.005a3fd0
add edi, 0xfffffffe
jne 0x593043
call fcn.005a3fd0
push 1
call fcn.005a066c
pop ecx
mov edi, dword [0x8362c8]
test ebx, ebx
je 0x593051
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x593090
mov eax, dword [0x836270]
cmp eax, 0x7fffffff
je 0x593090
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x84f980]
jg 0x593090
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push 4
push eax
push edx
call fcn.005a161c
add esp, 0xc
mov eax, dword [0x84fa04]
test eax, eax
je 0x593090
mov eax, dword [0x84fa00]
test eax, eax
jne 0x59321b
mov eax, dword [esi + 0x80]
cmp eax, 4
jne 0x592fde
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
cmp eax, 1
je 0x5932cc
mov dword [esi + 0x80], 0
test edi, edi
je 0x59328f
mov esi, dword [edx + 0x90]
mov eax, dword [edi + 0x400]
mov dword [ebp - 0x38], eax
cmp esi, 1
jbe 0x593283
mov dword [ebp - 8], ebx
xor edx, edx
mov eax, 1
lea edi, [ebx - 1]
mov ebx, dword [ebp - 0xc]
mov ecx, edx
sar ebx, cl
test edi, ebx
jne 0x593101
mov ecx, dword [ebp - 0x10]
add edx, ecx
shl eax, cl
cmp eax, esi
jb 0x5930eb
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub edx, ecx
shr eax, cl
test eax, eax
je 0x5931ca
add ebx, 0xffffffff
mov dword [ebp - 8], ebx
test edx, edx
jne 0x593121
mov ecx, edx
jmp 0x593124
lea ecx, [edx - 1]
mov edi, dword [ebp - 8]
mov ebx, esi
shr ebx, cl
mov ecx, edx
cmp ebx, edi
jb 0x593133
mov ebx, edi
mov edi, ebx
shl edi, cl
add edi, dword [ebp - 0xc]
mov dword [ebp - 4], edi
cmp ebx, 1
jb 0x5931bb
mov dword [ebp - 0x1c], eax
mov ecx, edx
mov dword [ebp - 0x18], edx
mov edx, edi
mov edi, 1
shl edi, cl
mov dword [ebp - 0x14], edi
cmp edx, esi
jae 0x5931ab
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
lea eax, [ecx + eax + 0x280]
mov dword [ebp - 0x24], eax
push 4
mov dword [ebp - 4], edx
push eax
call fcn.005a4010
mov edx, dword [ebp - 4]
add esp, 8
mov ecx, dword [0x836270]
cmp ecx, 0x7fffffff
je 0x5931ab
test al, 1
je 0x5931ab
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
push eax
push dword [ecx + 0x14]
call fcn.005a14e4
mov edx, dword [ebp - 4]
add esp, 8
add ebx, 0xffffffff
sub edx, edi
cmp ebx, 1
jae 0x593156
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
sub edx, ecx
shr eax, cl
test eax, eax
jne 0x593119
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x180]
test eax, eax
jne 0x5931f8
mov eax, dword [ebp - 0x3c]
push eax
push dword [eax + 0x19c]
call fcn.00598380
add esp, 8
jmp 0x592ffc
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push eax
push 1
push 4
push edx
push dword [ecx + 0x14]
push ecx
call fcn.005977bc
add esp, 0x1c
jmp 0x592ffc
push 0xffffffffffffffff
push 0x84fc00
call fcn.00596f48
add esp, 8
mov eax, dword [0x85059c]
test eax, eax
jne 0x59323b
push 3
call fcn.00744edc
pop ecx
call fcn.00596ab8
jmp 0x593233
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [0x84fa00]
test ecx, ecx
je 0x5930ab
push 0xffffffffffffffff
push 0x84fc00
call fcn.00596f48
add esp, 8
mov eax, dword [0x85059c]
test eax, eax
jne 0x59327c
push 3
call fcn.00744edc
pop ecx
call fcn.00596ab8
jmp 0x593274
xor edx, edx
mov eax, 1
jmp 0x593104
mov eax, dword [0x84f880]
mov ecx, dword [ebp - 0x18]
mov esi, dword [eax + ecx*4]
mov edi, dword [esi + 0x98]
test edi, edi
je 0x5932ab
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5932b9
mov eax, dword [0x84f880]
mov esi, dword [eax + ecx*4]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0xc], edi
mov eax, dword [0x84f880]
mov esi, dword [eax + ecx*4]
mov edi, dword [esi + 0x80]
jmp 0x5930c6
mov eax, dword [0x84fa04]
test eax, eax
je 0x5930b4
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret