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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x4c6e98
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 - 0x40], edi
imul ecx
mov dword [ebp - 0x44], edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4c6da5
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x24], 0x4034b50
mov word [ebp - 8], ax
xorps xmm0, xmm0
imul eax, ecx, 0x314
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov ecx, dword [eax + ebx]
mov dword [ebp - 0x48], eax
lea edx, [eax + ebx]
test ecx, ecx
je 0x4c6e85
movzx eax, word [ecx + 6]
mov word [ebp - 0x20], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x1e], ax
movzx eax, word [ecx + 0xa]
mov word [ebp - 0x1c], ax
movzx eax, word [ecx + 0xc]
mov word [ebp - 0x1a], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x18], ax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x16], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x12], eax
mov eax, dword [ecx + 0x18]
push 0x104
mov dword [ebp - 0xe], eax
lea eax, [edx + 0x20c]
push 0
push eax
call fcn.005fc2a0
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 0x4c6e85
lea ecx, [eax - 1]
mov eax, dword [esi + 0x1c]
mov word [ebp - 0xa], 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 - 0x40]
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c6e85
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x40]
add edi, dword [ebp - 0x40]
add ecx, 0x20c
push 0
push eax
movzx eax, word [ebp - 0xa]
push eax
lea eax, [ecx + ebx]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c6e85
add edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x12]
test ecx, ecx
je 0x4c6d7e
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + ebx + 0x310]
test eax, eax
je 0x4c6d7e
push 0
lea edx, [ebp - 0x40]
push edx
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c6e85
add edi, dword [ebp - 0x40]
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 0x4c6c30
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [ebp - 0x38], eax
sub ecx, ebx
mov eax, 0x532ae21d
mov dword [ebp - 0x30], 0
imul ecx
mov dword [ebp - 0x3c], 0x6054b50
sar edx, 8
mov eax, edx
mov dword [ebp - 0x2c], edi
shr eax, 0x1f
add eax, edx
movzx eax, ax
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], ax
mov eax, 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
je 0x4c6e69
xor edi, edi
nop
push 0
lea eax, [ebp - 0x40]
push eax
push 0x2e
push dword [edi + ebx]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c6e85
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov ebx, dword [ebp - 0x48]
add ebx, dword [ebp - 0x40]
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 0x4c6e85
add ebx, dword [ebp - 0x40]
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 0x4c6df0
mov eax, dword [ebp - 0x48]
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0x16
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c6e98
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
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.005bb391
mov esp, ebp
pop ebp
ret