Function at 0x593b44
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov esi, edx
mov edi, eax
mov ecx, dword [0x84f880]
mov ebx, dword [ecx + edi*4]
test esi, esi
jne 0x593bb9
mov eax, dword [0x8362b0]
mov edx, dword [ebx + 0x80]
test eax, eax
je 0x593b83
push edx
mov dword [ebp - 0x1c], edx
push ebx
call fcn.005984a0
mov edx, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [0x836270]
cmp eax, 0x7fffffff
je 0x593bb9
mov ecx, dword [edx + 0x480]
mov eax, esi
shl eax, 3
sub eax, esi
shl eax, 4
mov ecx, dword [ecx + eax + 0x38]
mov dword [ebx + 0x9c], ecx
mov edx, dword [edx + 0x480]
mov eax, dword [edx + eax + 0x3c]
mov dword [ebx + 0xa0], eax
mov edx, dword [0x850518]
test edx, edx
je 0x593bf4
mov eax, dword [0x850500]
test eax, eax
je 0x593bf4
cmp edx, 1
je 0x593e01
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov eax, 1
mov edx, ebx
mov ecx, edi
call fcn.00592f10
jmp 0x593dab
test esi, esi
jl 0x593c7c
mov eax, dword [0x84f880]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + 0x80]
jne 0x593c7c
mov edx, dword [ebx + 0x90]
mov eax, dword [eax + 0x400]
cmp edx, 1
jbe 0x593dab
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], esi
mov edi, 1
mov eax, dword [ebp - 0x18]
push 4
mov esi, dword [eax + edi*4]
lea ebx, [esi + 0x400]
push ebx
call fcn.005a4010
add esp, 8
mov edx, dword [0x836270]
cmp edx, 0x7fffffff
je 0x593c67
test al, 1
je 0x593c67
push ebx
push dword [esi + 0x14]
call fcn.005a14e4
add esp, 8
mov eax, dword [ebp - 4]
add edi, 1
cmp edi, eax
jb 0x593c32
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
jmp 0x593dab
mov dword [ebp - 0x20], 0
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x400]
lea edx, [ebx + 0x400]
cmp ecx, 4
je 0x593da1
mov ecx, dword [0x8362c4]
mov edi, dword [0x836270]
mov dword [ebp - 4], ecx
cmp edi, 0x7fffffff
je 0x593cc0
mov ecx, dword [0x84f980]
add ecx, dword [ebx + 0x9c]
jmp 0x593cc2
xor ecx, ecx
mov edi, dword [ebx + 0x400]
cmp edi, 4
je 0x593da1
mov edi, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
mov eax, dword [0x8362b0]
test eax, eax
je 0x593cf9
mov esi, dword [ebx + 0x19c]
test esi, esi
jne 0x593e1d
jmp 0x593cfb
xor esi, esi
mov eax, dword [0x84fa04]
test eax, eax
jne 0x593e81
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 0x593d42
call fcn.005a3fd0
push 1
call fcn.005a066c
pop ecx
mov edi, dword [0x8362c8]
test esi, esi
je 0x593d50
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x593d8f
mov eax, dword [0x836270]
cmp eax, 0x7fffffff
je 0x593d8f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x84f980]
jg 0x593d8f
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
push 4
push eax
push edx
call fcn.005a161c
add esp, 0xc
mov eax, dword [0x84fa04]
test eax, eax
je 0x593d8f
mov eax, dword [0x84fa00]
test eax, eax
jne 0x593e5a
mov eax, dword [ebx + 0x400]
cmp eax, 4
jne 0x593ce0
mov esi, dword [ebp - 0x14]
mov dword [ebx + 0x400], 0
mov eax, dword [0x8362b0]
mov edx, dword [ebx + 0x80]
test eax, eax
je 0x593df4
test edx, edx
je 0x593dc7
mov eax, dword [0x84fa04]
test eax, eax
je 0x593dea
mov eax, dword [ebx + 0x19c]
test eax, eax
je 0x593df4
test esi, esi
jne 0x593de1
mov dword [ebx + 0x19c], 0
jmp 0x593df4
push ebx
push eax
call fcn.00598380
jmp 0x593df1
push edx
push ebx
call fcn.005983ec
add esp, 8
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov eax, 1
mov edx, ebx
mov ecx, edi
call fcn.005932e8
jmp 0x593dab
mov eax, dword [esi + 0x180]
test eax, eax
jne 0x593e3b
push ebx
push dword [ebx + 0x19c]
call fcn.00598380
add esp, 8
jmp 0x593cfb
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 4
push edx
push dword [ebx + 0x14]
push ebx
call fcn.005977bc
add esp, 0x1c
jmp 0x593cfb
push 0xffffffffffffffff
push 0x84fc00
call fcn.00596f48
add esp, 8
mov eax, dword [0x85059c]
test eax, eax
jne 0x593e7a
push 3
call fcn.00744edc
pop ecx
call fcn.00596ab8
jmp 0x593e72
mov esi, dword [ebp - 0x14]
mov eax, dword [0x84fa00]
test eax, eax
je 0x593da1
push 0xffffffffffffffff
push 0x84fc00
call fcn.00596f48
add esp, 8
mov eax, dword [0x85059c]
test eax, eax
jne 0x593eb1
push 3
call fcn.00744edc
pop ecx
call fcn.00596ab8
jmp 0x593ea9