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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x18], edx
mov esi, ecx
push edi
test eax, eax
je 0x580632
call fcn.0058098b
lea ecx, [esi + 0x7d0]
call fcn.00596efb
mov dword [ebp - 0x18], eax
mov edx, dword [esi + 0x74]
lea edi, [esi + 0x1c]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
test edx, edx
je 0x580648
mov eax, dword [esi + 0x78]
cmp eax, dword [edi]
je 0x58066c
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [edi]
mov dword [esi + 0x78], ebx
call dword [eax]
mov dword [esi + 0x74], eax
test eax, eax
je 0x580924
mov eax, dword [edi]
mov dword [esi + 0x78], eax
mov edx, dword [esi + 0x7c]
lea ebx, [esi + 0x80]
test edx, edx
je 0x580680
mov eax, dword [ebx]
cmp eax, dword [esi + 0x18]
je 0x5806a6
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
mov edx, dword [esi + 0x18]
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax]
mov dword [esi + 0x7c], eax
test eax, eax
je 0x580924
mov eax, dword [esi + 0x18]
mov dword [ebx], eax
xor edx, edx
mov dword [ebp - 0x24], 1
mov dword [esi + 0x348], edx
mov ecx, edx
mov dword [esi + 0x350], edx
mov dword [esi + 0x354], edx
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x40], eax
mov eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x580758
cmp dword [ebp - 0x18], 0
je 0x58071b
lea ecx, [esi + 0x7d0]
lea edx, [ebp - 8]
call fcn.0059703a
mov edx, eax
xor eax, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x5808b5
mov ecx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
cmp dword [esi + 0x68], edx
jne 0x580758
mov eax, dword [ebx]
mov ecx, dword [esi + 0x7c]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x34]
push edx
mov dword [ebp - 0x1c], ecx
mov edx, ecx
mov ecx, eax
call dword [eax]
mov ecx, dword [ebp - 8]
add dword [esi + 0x60], ecx
push 0
pop edx
adc dword [esi + 0x64], edx
mov dword [esi + 0x6c], eax
test ecx, ecx
je 0x580752
test eax, eax
je 0x580758
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x68], eax
mov edx, dword [edi]
xor eax, eax
sub edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x44], eax
je 0x580799
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x54]
cmp dword [ebp - 0x44], eax
jb 0x580799
mov eax, dword [ebp - 0x20]
ja 0x580787
cmp edx, eax
jb 0x580799
mov edx, eax
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x40], eax
mov dword [ebp - 0x28], edx
cmovne eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, ecx
mov dword [ebp - 0x14], edx
sub eax, dword [ebp - 0xc]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0xc], ecx
lea ecx, [esi + 0x88]
sete al
add edx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00580afa
mov ecx, dword [ebp - 0x48]
mov edx, eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
mov dword [esi + 0x780], ecx
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0xc], ecx
add dword [esi + 0x58], ecx
push 0
pop ecx
adc dword [esi + 0x5c], ecx
add eax, dword [esi + 0x50]
mov dword [ebp - 0x30], eax
adc ecx, dword [esi + 0x54]
cmp dword [ebp - 0x20], 0
mov dword [esi + 0x50], eax
mov eax, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edx
mov dword [esi + 0x784], edx
mov dword [esi + 0x54], eax
jne 0x580822
test ecx, ecx
je 0x5808bf
test edx, edx
jne 0x5808bf
and dword [ebp - 0x20], edx
cmp ecx, dword [ebp - 0x28]
jae 0x5808c5
mov ecx, dword [ebp - 0x30]
cmp dword [esi + 0x3c], 0
je 0x5808ac
test edx, edx
jne 0x5808ac
mov eax, dword [esi + 0x58]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x5c]
sbb eax, dword [ebp - 0x38]
test eax, eax
ja 0x58087d
jb 0x580861
cmp dword [ebp - 0x4c], 0x400000
jae 0x58087d
mov eax, ecx
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
sbb eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
jne 0x58087d
cmp dword [ebp - 0x4c], 0x400000
jb 0x5808ac
push dword [ebp - 0x10]
mov eax, dword [esi + 0x3c]
push ecx
push dword [esi + 0x5c]
mov ecx, eax
push dword [esi + 0x58]
call dword [eax]
mov edx, eax
test edx, edx
jne 0x580913
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x20], 0
jne 0x580920
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor edx, edx
jmp 0x5806e9
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
je 0x580839
mov eax, dword [esi + 0x38]
mov ecx, eax
push dword [ebp - 4]
mov edx, dword [esi + 0x74]
call dword [eax]
mov ecx, eax
add ecx, dword [esi + 0x50]
push 0
pop edx
adc edx, dword [esi + 0x54]
mov dword [ebp - 0x10], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
cmp eax, dword [ebp - 4]
jne 0x580908
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x580839
mov ecx, dword [ebp + 8]
push 9
pop eax
mov dword [ecx + 0x38], eax
jmp 0x580927
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0xa
mov dword [eax + 0x30], edx
mov eax, edx
jmp 0x580927
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 4