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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x5bc
mov ebx, dword [esp + 0x25d0]
mov eax, dword [esp + 0x25d4]
mov ebp, dword [esp + 0x25d8]
mov ecx, dword [esp + 0x25dc]
mov esi, dword [esp + 0x25e0]
mov edx, dword [0xd3c044]
mov dword [esp + 0x25ac], edx
xor edx, edx
test ebx, ebx
je 0x58c998
mov edi, dword [ebx + 0x48]
test edi, edi
je 0x58c9c0
mov dword [esp + 0x28], ecx
test ebp, ebp
je 0x58c9c0
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x58c9c0
lea edx, [esp + 0xa8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call fcn.0058dc80
test eax, eax
je 0x58c998
mov edi, dword [esp + 0xec]
test edi, edi
jne 0x58c9d0
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xc8]
mov ecx, edx
mov dword [esp + 0x30], eax
or ecx, eax
mov dword [esp + 0x34], edx
je 0x58c9d0
test byte [esp + 0xbc], 0x61
mov ecx, dword [esp + 0x28]
jne 0x58ccb8
and esi, 0x400
mov dword [esp + 0x58], esi
jne 0x58c9e0
test word [esp + 0xbe], 0xfff7
je 0x58c9e0
mov dword [ebx + 0x1c], 4
lea esi, [esi]
xor edi, edi
mov eax, dword [esp + 0x25ac]
sub eax, dword [0xd3c044]
jne 0x58d1a1
add esp, 0x25bc
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x1c], 0x18
jmp 0x58c998
mov edi, 1
jmp 0x58c99a
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x10], 0x1e
mov edx, eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x88]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call dword [ebx + 0x38]
mov ecx, dword [esp + 0x28]
cmp eax, 0x1e
jne 0x58cca8
cmp dword [esp + 0x88], 0x4034b50
jne 0x58ccc8
movzx edx, word [esp + 0xa2]
movzx eax, word [esp + 0xa4]
mov esi, dword [ebx + 4]
lea eax, [edx + eax + 0x1e]
xor edx, edx
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
adc edx, dword [esp + 0x4c]
cmp dword [ebx], eax
sbb esi, edx
jb 0x58ccc8
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x58ce13
mov esi, dword [esp + 0x48]
add eax, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x58cd6e
cmp word [esp + 0xbe], 0
je 0x58cd6e
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x500], 0
mov dword [esp], eax
call dword [ebx + 0x28]
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x38], eax
je 0x58cfc7
mov dword [esp + 0x7c], edi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ecx
jmp 0x58cc5a
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
mov ebx, esi
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov eax, ecx
mov dword [esp + 0x10], ebp
or eax, ebx
setne al
movzx eax, al
add eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
lea eax, [esp + 0x500]
mov dword [esp], eax
call fcn.005a10b0
mov ebx, dword [esp + 0x84]
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
sub esi, eax
sbb edi, edx
add dword [esp + 0x40], eax
adc dword [esp + 0x44], edx
test ebx, ebx
je 0x58cc4a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp], edx
mov edx, dword [esp + 0x74]
call edx
cmp ebx, eax
jne 0x58d14c
mov edx, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.00589440
xor edx, edx
add dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x28]
adc dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xd4]
cmp dword [esp + 0xd0], ecx
sbb eax, ebx
jb 0x58d129
mov eax, dword [esp + 0x30]
sub eax, 1
cmp eax, 1
ja 0x58d0bd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, 0x8000
and eax, 0x7fff
sub edx, eax
lea ebp, [ecx + eax]
mov eax, edi
or eax, esi
mov dword [esp + 0x84], edx
jne 0x58cb58
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x58ccd4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
xor ebx, ebx
lea edx, [eax + ecx]
jmp 0x58cb65
mov dword [ebx + 0x1c], 0x14
jmp 0x58c998
mov dword [ebx + 0x1c], 5
jmp 0x58c998
mov dword [ebx + 0x1c], 9
jmp 0x58c998
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x6c], eax
mov ecx, ebx
sbb ecx, edx
mov ecx, dword [esp + 0x6c]
cmovae ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
cmovae ecx, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 4], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0x44]
mov dword [esp], eax
call dword [ecx + 0x38]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
xor eax, ecx
or eax, edx
jne 0x58d1c9
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], esi
add dword [esp + 0x48], eax
mov esi, dword [esp + 0x60]
adc dword [esp + 0x4c], edx
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x64]
sub dword [esp + 0x50], eax
sbb dword [esp + 0x54], edx
mov edx, dword [esp + 0x5c]
jmp 0x58cb65
cmp dword [esp + 0x34], 0
ja 0x58cf92
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call ebp
mov esi, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esp + 0x34]
xor edx, esi
or eax, edx
je 0x58cf9e
mov dword [ebx + 0x1c], 0x1f
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x58c99a
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
mov esi, dword [esp + 0x30]
xor eax, eax
test esi, esi
sete al
mov edi, eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x58c99a
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
jmp 0x58c99a
mov esi, dword [esp + 0x30]
mov edx, 0x10000
xor eax, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], 1
cmp edx, esi
mov esi, eax
sbb esi, dword [esp + 0x34]
mov esi, edx
mov edx, dword [esp + 0x30]
cmovae eax, ecx
cmovae esi, edx
mov dword [esp + 0x68], eax
mov dword [esp + 8], esi
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x6c], esi
mov dword [esp], eax
call dword [ebx + 0x28]
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x5c], eax
je 0x58d11d
mov esi, dword [esp + 0x58]
test esi, esi
jne 0x58cfd3
cmp word [esp + 0xbe], 0
jne 0x58d1db
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x58cd6e
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x60], ecx
jmp 0x58cf2d
mov eax, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00589440
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov eax, dword [esp + 0x50]
call eax
mov edx, eax
mov eax, edi
xor edx, ebx
or eax, edx
jne 0x58d1bc
add dword [esp + 0x48], ebx
adc dword [esp + 0x4c], edi
add dword [esp + 0x28], ebx
adc dword [esp + 0x2c], edi
sub dword [esp + 0x30], ebx
mov eax, dword [esp + 0x30]
sbb dword [esp + 0x34], edi
mov ecx, dword [esp + 0x34]
or ecx, eax
je 0x58d1af
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x34]
cmp eax, ecx
mov ebx, edx
sbb ebx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [esp + 0x48]
cmovae ebx, ecx
mov ecx, edx
mov edx, dword [esp + 0x4c]
cmovae ecx, dword [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov edi, ecx
mov dword [esp + 0x10], ebx
mov eax, dword [edx + 0x44]
mov dword [esp], eax
call dword [edx + 0x38]
xor eax, ebx
or eax, edi
je 0x58ceba
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x40]
mov dword [ebx + 0x1c], 0x14
jmp 0x58cdb9
mov dword [ebx + 0x1c], 0x1b
jmp 0x58c998
mov edx, dword [esp + 0x58]
test edx, edx
je 0x58d168
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x58c9d0
xor edi, edi
mov dword [esp + 0x30], edi
jmp 0x58cdd3
mov dword [ebx + 0x1c], 0x10
jmp 0x58cdb9
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x58cd6e
xor eax, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], ecx
jmp 0x58d063
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
call ecx
mov edx, eax
mov eax, edi
xor edx, esi
or eax, edx
jne 0x58d1a6
add dword [esp + 0x48], esi
adc dword [esp + 0x4c], edi
add dword [esp + 0x28], esi
adc dword [esp + 0x2c], edi
sub dword [esp + 0x30], esi
mov eax, dword [esp + 0x30]
sbb dword [esp + 0x34], edi
mov ecx, dword [esp + 0x34]
or ecx, eax
je 0x58d15b
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp eax, ecx
mov ebp, edx
sbb ebp, dword [esp + 0x68]
mov ebp, eax
cmovae edx, dword [esp + 0x68]
cmovae ebp, ecx
mov ecx, dword [esp + 0x4c]
mov edi, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], ebp
mov esi, ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
xor eax, esi
or eax, edi
je 0x58d008
mov edi, dword [esp + 0x60]
jmp 0x58cf86
cmp dword [esp + 0x30], 0
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
jne 0x58d0f6
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, 0xd
xor edx, dword [esp + 0xd4]
xor eax, dword [esp + 0xd0]
or eax, edx
je 0x58d109
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [ebx + 0x48]
mov ebp, dword [eax + 0x48]
test ebp, ebp
jne 0x58cdf1
jmp 0x58cdd3
mov eax, dword [esp + 0x58]
cmp dword [esp + 0xc0], eax
je 0x58d15b
mov ecx, 0xb
jmp 0x58d0eb
mov dword [ebx + 0x1c], 0x10
jmp 0x58c998
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
mov eax, 0xb
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x48]
mov edx, dword [eax + 0x48]
test edx, edx
jne 0x58cdfd
jmp 0x58cdcb
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
mov eax, 0x1f
jmp 0x58d136
xor eax, eax
mov edi, 1
mov dword [esp + 0x30], eax
jmp 0x58d0f6
mov esi, dword [esp + 0x30]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 8], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 4], esi
call fcn.00589440
mov edx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x38], eax
jmp 0x58d0cc
call fcn.00401690
mov edi, dword [esp + 0x60]
jmp 0x58cdb2
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x40]
jmp 0x58d0cc
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x40]
jmp 0x58cdb2
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
mov eax, 0x14
jmp 0x58d136
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
jmp 0x58cad4