Function at 0x4055d0
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov ebx, ecx
push eax
mov dword [ebp - 4], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40561c
push 3
call fcn.00405990
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 4], eax
test eax, eax
jne 0x405645
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
call fcn.00405990
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x40566d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.00405990
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 4]
push edi
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebx]
mov edi, dword [ebx + 8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
sub ecx, 0x40
push ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0x40
call fcn.0046bf6a
mov ecx, dword [ebx + 0x10]
add esp, 4
mov dword [ebx + 0xc], eax
test ecx, ecx
js 0x4056c9
push ecx
mov ecx, dword [ebx + 0x14]
add ecx, dword [ebx]
push ecx
push eax
call fcn.0046c4b0
add esp, 0xc
mov edx, dword [ebx + 8]
mov esi, dword [edx + 0x3c]
add esi, dword [ebx]
mov edi, dword [ebx + 0x18]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
mov edx, 0x5a4d
mov dword [ebp - 8], ecx
cmp word [eax], dx
je 0x405710
push 2
call fcn.00405990
mov eax, dword [ebx]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x18]
cmp dword [eax], 0x4550
je 0x405737
push 2
call fcn.00405990
mov ecx, dword [ebx]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx edi, word [eax + 6]
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4057b4
xor edx, edx
lea eax, [ebx + 0x1c]
mov dword [ebp + 8], edi
jmp 0x405753
mov ecx, dword [ebp - 8]
mov esi, dword [ebx]
mov edi, dword [eax]
add esi, edx
add esi, ecx
mov ecx, 0xa
add eax, 4
add edx, 0x28
dec dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
jne 0x405750
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4057b4
lea esi, [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 0x3c]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esi]
mov dword [esi + 0x50], eax
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
add ecx, dword [ebx]
push edx
push ecx
push eax
call fcn.0046c4b0
add esp, 0xc
add esi, 4
dec edi
jne 0x405777
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4