Function at 0x44e31c
Capabilities:
Enumerate pe sections
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [0x45c4f0]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov edx, dword [eax + 0x3c]
push edi
lea edi, [eax + 0x18]
mov dword [esp + 0x14], edx
movzx edx, word [eax + 6]
lea edx, [edx + edx*4]
mov ebx, dword [eax + edx*8 + 0xe4]
add ebx, dword [eax + edx*8 + 0xd8]
cmp ebp, 8
lea edx, [eax + edx*8 + 0xd0]
jl 0x44e53b
mov eax, ebx
sub eax, ebp
mov esi, ecx
add eax, esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [0x45b0d0]
add eax, ebp
sub ebx, eax
lea eax, [ecx + ebx]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x3c]
sub ebx, 0xe0
mov dword [esp + 0x10], esi
cmp edx, 0x1000
ja 0x44e53b
cmp dword [edx + eax], 0x4550
jne 0x44e53b
lea esi, [ecx + ebx]
mov ecx, 0x38
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + eax + 0x104]
lea edi, [edx + eax + 0x18]
mov edi, dword [edi + 0x20]
lea esi, [edx + eax + 0xf8]
movzx eax, word [edx + eax + 6]
lea edx, [eax + eax*4]
mov eax, dword [esi + edx*8 - 0x20]
lea esi, [esi + edx*8 - 0x28]
xor edx, edx
div edi
inc eax
imul eax, edi
mov edi, dword [esp + 0x20]
sub ecx, eax
sub ecx, dword [esi + 0xc]
mov esi, dword [edi + 0x14]
sub ecx, esi
add ebx, ecx
test ebp, ebp
je 0x44e3ff
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
jmp 0x44e402
mov dword [edi + 8], ebx
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
je 0x44e419
inc eax
imul eax, ecx
mov dword [edi + 0x10], eax
jmp 0x44e41c
mov dword [edi + 0x10], ebx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x10], ecx
mov edx, dword [0x45c4f0]
mov eax, dword [edx + 0xc]
push eax
add ebx, esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push ebx
push ecx
call esi
mov edx, dword [0x45c4f0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 4]
push 0
push 0
push 0
push edx
call esi
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x45c4f0]
push 0
push 0
push 0
mov dword [edx], eax
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 4]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, dword [0x45c4f0]
mov dword [edx + 8], eax
mov eax, dword [0x45c4f0]
mov eax, dword [eax + 8]
test eax, eax
je 0x44e53b
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [0x45c4f0]
mov dword [ecx + 0xc], eax
mov eax, dword [0x45c4f0]
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [0x45c4f0]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x3c], 0x1000
ja 0x44e53b
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x14]
add ecx, 4
mov dword [eax + 0x18], ecx
mov eax, dword [0x45c4f0]
mov edx, dword [eax + 0x14]
add edx, 0x18
mov dword [eax + 0x1c], edx
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x1c]
pop edi
pop esi
add ecx, 0xe0
pop ebp
mov dword [eax + 0x20], ecx
mov al, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret