Function at 0x4d49d0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x59024c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x4d4c98
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x20]
mov eax, 0x532ae21d
mov ebx, dword [esi + 0x1c]
xor edi, edi
sub ecx, ebx
mov dword [ebp - 8], edi
imul ecx
mov dword [ebp - 0x44], edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4d4ba5
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x28], 0x4034b50
mov word [ebp - 0xc], ax
xorps xmm0, xmm0
imul eax, ecx, 0x314
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, dword [eax + ebx]
mov dword [ebp - 0x48], eax
lea edx, [eax + ebx]
test ecx, ecx
je 0x4d4c85
movzx eax, word [ecx + 6]
mov word [ebp - 0x24], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x22], ax
movzx eax, word [ecx + 0xa]
mov word [ebp - 0x20], ax
movzx eax, word [ecx + 0xc]
mov word [ebp - 0x1e], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1c], ax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1a], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x16], eax
mov eax, dword [ecx + 0x18]
push 0x104
mov dword [ebp - 0x12], eax
lea eax, [edx + 0x20c]
push 0
push eax
call fcn.004ee2e0
mov ebx, dword [ebp - 0x48]
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [ebx + 0x20c]
add eax, dword [esi + 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 4]
add eax, dword [esi + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4d4c85
lea ecx, [eax - 1]
mov eax, dword [esi + 0x1c]
mov word [ebp - 0xe], cx
push 0
mov eax, dword [eax + ebx]
mov word [eax + 0x1c], cx
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + ebx]
mov dword [eax + 0x2a], edi
lea eax, [ebp - 8]
push eax
push 0x1e
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4c85
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 8]
add edi, dword [ebp - 8]
add ecx, 0x20c
push 0
push eax
movzx eax, word [ebp - 0xe]
push eax
lea eax, [ecx + ebx]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4c85
add edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x16]
test ecx, ecx
je 0x4d4b7e
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + ebx + 0x310]
test eax, eax
je 0x4d4b7e
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4c85
add edi, dword [ebp - 8]
mov ecx, dword [esi + 0x20]
mov eax, 0x532ae21d
mov ebx, dword [esi + 0x1c]
sub ecx, ebx
inc dword [ebp - 0x44]
imul ecx
mov ecx, dword [ebp - 0x44]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x4d4a30
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [ebp - 0x3c], eax
sub ecx, ebx
mov eax, 0x532ae21d
mov dword [ebp - 0x34], 0
imul ecx
mov dword [ebp - 0x40], 0x6054b50
sar edx, 8
mov eax, edx
mov dword [ebp - 0x30], edi
shr eax, 0x1f
add eax, edx
movzx eax, ax
mov word [ebp - 0x38], ax
mov word [ebp - 0x36], ax
mov eax, 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
je 0x4d4c69
xor edi, edi
nop
push 0
lea eax, [ebp - 8]
push eax
push 0x2e
push dword [edi + ebx]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4c85
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 8]
mov ebx, dword [ebp - 0x48]
add ebx, dword [ebp - 8]
push 0
push eax
mov eax, dword [ecx + edi]
movzx eax, word [eax + 0x1c]
push eax
lea eax, [ecx + 0x20c]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4c85
add ebx, dword [ebp - 8]
mov eax, 0x532ae21d
mov ecx, dword [esi + 0x20]
add edi, 0x314
inc dword [ebp - 0x44]
mov dword [ebp - 0x48], ebx
mov ebx, dword [esi + 0x1c]
sub ecx, ebx
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x44], eax
jb 0x4d4bf0
mov eax, dword [ebp - 0x48]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 8]
push eax
push 0x16
lea eax, [ebp - 0x40]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d4c98
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448d5d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d5d
mov esp, ebp
pop ebp
ret