Function at 0x506d80
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 [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x53cee4]
lea edi, [ebp - 0x28]
mov ecx, esi
push edi
call ebx
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.00506ff0
cmp byte [edi + 0xb], 0
jns 0x506dc8
push dword [ebp - 0x28]
call fcn.0048d98d
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x53cee4]
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 [0x53cee4]
mov ecx, edi
call ebx
xor edi, edi
dec edi
push edi
push edx
push eax
call fcn.00505520
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 [0x53cee4]
mov ecx, dword [ebp + 8]
call ebx
lea ecx, [esi + 0x4c]
push edx
push eax
push ecx
call fcn.0050ba60
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 [0x53cee4]
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 [0x53cee4]
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 [0x53cee4]
mov ecx, edi
call ebx
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x506edd
cmp eax, 1
je 0x506ee2
xor eax, eax
jmp 0x506ee2
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 [0x53cee4]
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
je 0x506f5e
push 0x48
call fcn.0048d95d
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00504750
mov dword [ebx], 0x524508
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.00416e00
lea ecx, [ebp - 0x1c]
mov dword [ecx], esi
push esi
call fcn.00507550
jmp 0x506fa1
push 0x64
call fcn.0048d95d
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00504750
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], 0x524598
mov ecx, ebx
push edi
call fcn.00506b40
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 0xac]
mov dword [eax + 0xac], ebx
test edi, edi
je 0x506fc6
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x53cee4]
mov ecx, edi
push 1
call esi
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
mov dword [ecx], eax
call fcn.00455c70
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4