Function at 0x457c90
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movzx ecx, byte [0x507318]
mov byte [esp + 3], cl
mov esi, dword [0x507688]
mov eax, dword [eax + 0x24]
cmp esi, eax
cmova eax, esi
lea eax, [eax*2 + 2]
push eax
call sym._malloc
add esp, 4
mov ebp, eax
mov eax, dword [0x50768c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
lea eax, [esp + 0x10]
push ecx
push esi
push eax
push ebp
call sym._mbsrtowcs
add esp, 0x10
mov edi, eax
movzx eax, word [ebp]
test ax, ax
je 0x457d35
xor esi, esi
xor ebx, ebx
nop word cs:[eax + eax]
cmp edi, esi
je 0x457d31
movzx eax, ax
push eax
call dbg.mk_wcwidth
add esp, 4
test eax, eax
js 0x457d35
add ebx, eax
movzx eax, word [ebp + esi*2 + 2]
inc esi
test ax, ax
jne 0x457d10
test ebx, ebx
jg 0x457d3b
mov ebx, dword [0x507688]
movzx eax, byte [esp + 3]
test al, al
mov dword [esp + 4], ebp
je 0x457d50
mov esi, dword [0x507694]
jmp 0x457d75
mov ebp, dword [0x507698]
mov edi, dword [0x507694]
push edi
push 0x2e
push ebp
call sym._memchr
add esp, 0xc
mov esi, eax
sub esi, ebp
mov ebp, dword [esp + 4]
test eax, eax
cmove esi, edi
inc ebx
mov eax, dword [0x507634]
test eax, eax
je 0x457d8d
push eax
push str.e__uC
call sym._printf.llvm.1952461286852829747
add esp, 8
inc dword [0x50763c]
add ebx, esi
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x457e77
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call sym._mbsrtowcs
add esp, 0x10
mov edi, eax
movzx eax, word [ebp]
test ax, ax
je 0x457e03
xor ebp, ebp
xor esi, esi
nop
cmp edi, ebp
je 0x457df5
movzx eax, ax
push eax
call dbg.mk_wcwidth
add esp, 4
test eax, eax
js 0x457e03
add esi, eax
mov eax, dword [esp + 4]
movzx eax, word [eax + ebp*2 + 2]
inc ebp
test ax, ax
jne 0x457dd0
test esi, esi
jle 0x457e03
cmp ebx, esi
jge 0x457e0e
mov ebp, dword [esp + 0x44]
jmp 0x457e3e
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x24]
cmp ebx, esi
jl 0x457dfd
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebp, dword [esp + 0x44]
nop dword [eax + eax]
push 1
call edi
add esp, 4
push eax
push dword [ebp + 0x24]
push 1
push dword [ebp + 0x28]
call sym._fwrite
add esp, 0x10
sub ebx, esi
cmp ebx, esi
jge 0x457e20
test ebx, ebx
jle 0x457ed9
cmp esi, dword [ebp + 0x24]
jne 0x457ef4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [ebp + 0x28]
movsx eax, byte [eax + esi]
push eax
call sym._putchar
add esp, 4
inc esi
cmp ebx, esi
jne 0x457e60
jmp 0x457ed9
test ebx, ebx
je 0x457ed9
movaps xmm0, xmmword [str.________________Separator]
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x10], xmm0
cmp ebx, 0x20
lea ebp, [esp + 0x10]
jb 0x457ebc
mov esi, 0x20
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call edi
add esp, 4
push eax
push 0x20
push 1
push ebp
call sym._fwrite
add esp, 0x10
add esi, 0x20
cmp esi, ebx
jbe 0x457ea0
and ebx, 0x1f
je 0x457ed9
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push ebx
push 1
push ebp
call sym._fwrite
add esp, 0x10
push 0xa
call sym._putchar
add esp, 4
push dword [esp + 4]
call sym._free
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [esp + 4]
jmp 0x457f07
add edi, 2
sub ebx, eax
jle 0x457ed9
movzx ebp, word [edi]
push 1
call esi
add esp, 4
push eax
push ebp
call sym._fputwc
add esp, 8
movzx eax, word [edi]
push eax
call dbg.mk_wcwidth
add esp, 4
test eax, eax
jg 0x457f00
xor eax, eax
jmp 0x457f00