Function at 0x580530
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x5c0d2c]
lea edi, [ebp - 0x28]
mov ecx, esi
push edi
call ebx
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.005807a0
cmp byte [edi + 0xb], 0
jns 0x580578
push dword [ebp - 0x28]
call fcn.004f50ae
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x5c0d2c]
mov ecx, edi
call ebx
mov esi, dword [ebp - 0x2c]
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [0x5c0d2c]
mov ecx, edi
call ebx
xor edi, edi
dec edi
push edi
push edx
push eax
call fcn.0057ecd0
add esp, 0xc
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x5c0d2c]
mov ecx, dword [ebp + 8]
call ebx
lea ecx, [esi + 0x4c]
push edx
push eax
push ecx
call fcn.00585210
add esp, 0xc
lea eax, [ebp - 0x12]
mov dword [eax - 2], edi
mov dword [eax - 6], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [eax + 0x14]
mov ecx, ebx
call dword [0x5c0d2c]
lea edi, [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16]
push eax
push edi
call ebx
movzx eax, word [edi + 6]
movzx ecx, word [edi + 2]
movzx edx, word [edi]
shl edx, 0x10
or edx, ecx
movzx ecx, word [edi + 4]
mov dword [esi + 0x5c], edx
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x60], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [0x5c0d2c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16]
push eax
push edi
call ebx
movzx eax, word [edi + 2]
movzx ecx, word [edi]
shl ecx, 0x10
or ecx, eax
movzx eax, word [edi + 6]
movzx edx, word [edi + 4]
mov edi, dword [ebp + 8]
mov dword [esi + 0x64], ecx
shl edx, 0x10
or edx, eax
mov dword [esi + 0x68], edx
mov eax, dword [edi]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [0x5c0d2c]
mov ecx, edi
call ebx
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x58068d
cmp eax, 1
je 0x580692
xor eax, eax
jmp 0x580692
mov eax, 2
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], 0
xor eax, eax
dec eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [0x5c0d2c]
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
je 0x58070e
push 0x48
call fcn.004f507e
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.0057df00
mov dword [ebx], 0x59f198
lea ecx, [ebx + 0x3c]
xor esi, esi
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edx, eax
sub edx, edi
push edx
push eax
push edi
call fcn.0041ec20
lea ecx, [ebp - 0x1c]
mov dword [ecx], esi
push esi
call fcn.00580d00
jmp 0x580751
push 0x64
call fcn.004f507e
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.0057df00
xorps xmm0, xmm0
movsd qword [ebx + 0x58], xmm0
mov dword [ebx + 0x60], 0
xorps xmm1, xmm1
movups xmmword [ebx + 0x40], xmm1
movsd qword [ebx + 0x4d], xmm0
mov dword [ebx + 0x3c], 0x53445352
mov dword [ebx], 0x59f228
mov ecx, ebx
push edi
call fcn.005802f0
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 0xac]
mov dword [eax + 0xac], ebx
test edi, edi
je 0x580776
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5c0d2c]
mov ecx, edi
push 1
call esi
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
mov dword [ecx], eax
call fcn.00494b10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5620
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4