Function at 0x58a040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
mov ebx, dword [edi]
test ebx, ebx
je 0x58a11c
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00589f34
inc eax
je 0x58a09c
mov eax, dword [esi]
add eax, 2
mov dword [esp + 4], eax
lea ebp, [esp + 0x50]
mov dword [esp], ebp
call fcn.0058a924
mov ebx, eax
test eax, eax
je 0x58a0e4
mov eax, ebx
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x58a118
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00589afc
mov ebx, eax
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x58a08c
mov edx, dword [esp + 0xc8]
mov dword [esp], edx
call fcn.0058a6f4
mov eax, ebx
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
add eax, 2
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x80]
mov dword [esp], ecx
call fcn.0053cdbc
mov ebx, eax
test eax, eax
je 0x58a128
mov dword [esp], ebp
call fcn.005249ec
mov eax, ebx
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
jmp 0x58a0bc
mov ebx, 0xfffffffd
jmp 0x58a08c
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.0053cdbc
mov ebx, eax
test eax, eax
je 0x58a150
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.005249ec
jmp 0x58a102
mov dword [esp + 4], esi
lea edx, [esp + 0x60]
mov dword [esp], edx
call fcn.00524964
mov ebx, eax
test eax, eax
je 0x58a177
lea esi, [esp + 0x90]
mov dword [esp], esi
call fcn.005249ec
jmp 0x58a13d
mov dword [esp + 4], edi
lea ecx, [esp + 0x70]
mov dword [esp], ecx
call fcn.00524964
mov ebx, eax
test eax, eax
je 0x58a19b
lea ecx, [esp + 0x60]
mov dword [esp], ecx
call fcn.005249ec
jmp 0x58a166
mov ecx, dword [esi + 8]
mov dword [esp + 0x3c], ecx
mov edi, dword [edi + 8]
mov dword [esp + 0x40], edi
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.00589a94
mov ecx, 0x1c
cdq
idiv ecx
cmp edx, 0x1b
je 0x58a211
mov dword [esp + 0x24], 0x1b
sub dword [esp + 0x24], edx
lea edx, [esp + 0x60]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00589d34
mov ebx, eax
test eax, eax
je 0x58a298
lea edx, [esp + 0x70]
mov dword [esp], edx
call fcn.005249ec
jmp 0x58a18d
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x34], ecx
dec ecx
mov dword [esp + 0x2c], ecx
mov edi, eax
sub edi, ecx
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.0058b78c
mov ebx, eax
test eax, eax
jne 0x58a200
lea edx, [edi*4]
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.0058b3a4
inc eax
je 0x58a2bf
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x5c]
inc dword [eax]
lea edx, [esp + 0x60]
mov dword [esp + 8], edx
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.0058a998
test eax, eax
je 0x58a254
mov ebx, eax
jmp 0x58a200
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00589d34
mov ebx, eax
test eax, eax
jne 0x58a200
jmp 0x58a219
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.0058bae0
mov ecx, dword [esp + 0x2c]
shl ecx, 2
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx*4 - 4]
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x20]
shl edi, 2
imul ecx, dword [esp + 0x34], 0xfffffffc
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], esi
jmp 0x58a30c
lea esi, [edi - 4]
dec dword [esp + 0x20]
mov edi, esi
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x20], esi
jle 0x58a5a3
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x60]
jg 0x58a303
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + edi]
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x38]
mov ecx, dword [edx + esi]
cmp eax, ecx
je 0x58a583
xor edx, edx
shld edx, eax, 0x1c
shl eax, 0x1c
or eax, dword [ebx + edi - 4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005cd23c
mov ecx, dword [esp + 0x5c]
lea ebx, [ecx + edi]
add ebx, dword [esp + 0x28]
cmp edx, 0
ja 0x58a37a
cmp eax, 0xfffffff
jbe 0x58a37f
mov eax, 0xfffffff
mov dword [ebx], eax
mov ebx, dword [esp + 0x28]
add ebx, edi
lea edx, [ecx + ebx]
mov eax, dword [edx]
inc eax
and eax, 0xfffffff
mov dword [edx], eax
lea edx, [edi - 8]
mov dword [esp + 0x30], edx
lea esi, [edi - 4]
mov dword [esp + 0x1c], esi
lea edx, [ecx + ebx]
mov eax, dword [edx]
dec eax
and eax, 0xfffffff
mov dword [edx], eax
lea ecx, [esp + 0x80]
mov dword [esp], ecx
call fcn.0058a6f4
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x58a475
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x44]
mov ecx, dword [eax + esi]
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ecx]
mov dword [edx + 4], eax
mov dword [esp + 0x80], 2
lea esi, [esp + 0x80]
mov dword [esp + 8], esi
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + ebx]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00589b7c
test eax, eax
jne 0x58a291
mov edx, dword [esp + 0x9c]
cmp dword [esp + 0x20], 1
jle 0x58a480
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x30]
mov ecx, dword [eax + esi]
mov dword [edx], ecx
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + esi]
mov dword [edx + 4], ecx
mov eax, dword [eax + edi]
mov dword [edx + 8], eax
mov dword [esp + 0x90], 3
lea eax, [esp + 0x90]
mov dword [esp + 4], eax
lea edx, [esp + 0x80]
mov dword [esp], edx
call fcn.00589f34
dec eax
jne 0x58a494
mov ecx, dword [esp + 0x5c]
jmp 0x58a3a2
xor ecx, ecx
mov eax, dword [esp + 0x7c]
jmp 0x58a3dc
mov dword [edx], 0
je 0x58a59a
xor ecx, ecx
mov eax, dword [esp + 0x6c]
jmp 0x58a43b
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x80]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + ebx]
mov dword [esp + 4], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.00589b7c
test eax, eax
jne 0x58a291
mov edi, dword [esp + 0x20]
sub edi, dword [esp + 0x34]
mov dword [esp + 4], edi
lea edx, [esp + 0x80]
mov dword [esp], edx
call fcn.0058b78c
test eax, eax
jne 0x58a291
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0058a998
test eax, eax
jne 0x58a291
cmp dword [esp + 0x68], 1
jne 0x58a306
lea edx, [esp + 0x80]
mov dword [esp + 4], edx
lea ecx, [esp + 0x70]
mov dword [esp], ecx
call fcn.00589afc
test eax, eax
jne 0x58a291
mov dword [esp + 4], edi
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.0058b78c
test eax, eax
jne 0x58a291
lea edx, [esp + 0x60]
mov dword [esp + 8], edx
lea ecx, [esp + 0x80]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00589f90
test eax, eax
jne 0x58a291
add ebx, dword [esp + 0x5c]
mov eax, dword [ebx]
dec eax
and eax, 0xfffffff
mov dword [ebx], eax
jmp 0x58a306
mov ecx, dword [esp + 0x5c]
lea eax, [ecx + edi]
mov esi, dword [esp + 0x28]
mov dword [eax + esi], 0xfffffff
jmp 0x58a381
mov eax, dword [esp + 0x6c]
jmp 0x58a434
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor eax, eax
cmp dword [esp + 0x60], 0
je 0x58a5b7
mov eax, dword [esi + 8]
mov dword [esp + 0x68], eax
cmp dword [esp + 0xc8], 0
je 0x58a5f7
mov dword [esp], ebp
call fcn.00589f00
mov eax, dword [esp + 0xc8]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0058b5fc
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp dword [esp + 0x3c], ecx
setne al
mov esi, dword [esp + 0xc8]
mov dword [esi + 8], eax
cmp dword [esp + 0xcc], 0
je 0x58a200
mov dword [esp + 0xc], 0
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0058a720
mov esi, dword [esp + 0xcc]
mov dword [esp + 4], esi
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.0058b5fc
jmp 0x58a200