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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5548e8
test edi, edi
jne 0x45c748
mov eax, 0x5548f0
push esi
push 4
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
test edi, edi
mov edi, dword [sym.imp.MSVCR100.dll_putc]
jne 0x45c77d
movzx eax, word [ebx]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 8
push esi
push eax
call edi
add esp, 0x10
movzx eax, word [ebx + 2]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 8
push esi
push eax
call edi
movzx eax, word [ebx + 4]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 8
push esi
push eax
call edi
movzx eax, word [ebx + 6]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 8
push esi
push eax
call edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.MSVCR100.dll__localtime64]
mov cx, word [eax + 0x14]
shl cx, 4
add cx, word [eax + 0x10]
mov edx, 0x301
add cx, dx
mov dx, word [eax + 8]
shl dx, 6
add dx, word [eax + 4]
shl cx, 5
add cx, word [eax + 0xc]
mov eax, dword [eax]
sar eax, 1
shl dx, 5
add dx, ax
movzx eax, dx
movzx ecx, cx
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
mov dword [ebp - 0xc], ecx
call edi
mov eax, dword [ebp - 4]
shr eax, 8
push esi
push eax
call edi
movzx eax, word [ebp - 0xc]
add esp, 0x44
mov dword [ebp - 0xc], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 0xc]
shr eax, 8
push esi
push eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
push esi
push ecx
call edi
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
push esi
push edx
call edi
mov eax, dword [ebp - 4]
shr eax, 0x18
push esi
push eax
call edi
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
push esi
push eax
call edi
mov ecx, dword [ebp - 4]
add esp, 0x40
shr ecx, 0x10
and ecx, 0xff
push esi
push ecx
call edi
mov eax, dword [ebp - 4]
shr eax, 0x18
push esi
push eax
call edi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
push esi
push edx
call edi
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 0x18
push esi
push eax
call edi
movzx eax, word [ebx + 0x20]
mov dword [ebp - 0xc], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 0xc]
shr eax, 8
push esi
push eax
call edi
movzx eax, word [ebx + 0x28]
add esp, 0x40
mov dword [ebp - 0xc], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 0xc]
shr eax, 8
push esi
push eax
call edi
add esp, 0x10
cmp dword [ebp + 8], 0
jne 0x45ca05
movzx eax, word [ebx + 0x30]
mov dword [ebp - 0xc], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 0xc]
shr eax, 8
push esi
push eax
call edi
movzx eax, word [ebx + 0x32]
mov dword [ebp - 0xc], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 0xc]
shr eax, 8
push esi
push eax
call edi
movzx eax, word [ebx + 0x34]
mov dword [ebp - 0xc], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 0xc]
shr eax, 8
push esi
push eax
call edi
mov eax, dword [ebx + 0x38]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
push esi
push ecx
call edi
mov edx, dword [ebp - 4]
add esp, 0x40
shr edx, 0x10
and edx, 0xff
push esi
push edx
call edi
mov eax, dword [ebp - 4]
shr eax, 0x18
push esi
push eax
call edi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 4], eax
and eax, 0xff
push esi
push eax
call edi
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
push esi
push eax
call edi
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
push esi
push ecx
call edi
mov eax, dword [ebp - 4]
shr eax, 0x18
push esi
push eax
call edi
add esp, 0x30
movzx eax, word [ebx + 0x20]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
test ax, ax
je 0x45ca21
push esi
push eax
mov eax, dword [ebx + 0x1c]
push 1
push eax
call edi
add esp, 0x10
movzx eax, word [ebx + 0x28]
test ax, ax
je 0x45ca37
mov edx, dword [ebx + 0x24]
push esi
push eax
push 1
push edx
call edi
add esp, 0x10
cmp dword [ebp + 8], 0
jne 0x45ca53
movzx eax, word [ebx + 0x30]
test ax, ax
je 0x45ca53
mov ecx, dword [ebx + 0x2c]
push esi
push eax
push 1
push ecx
call edi
add esp, 0x10
push esi
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
test eax, eax
je 0x45ca81
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x45ca79
mov dword [ecx], 6
mov dword [ecx + 4], eax
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret