Function at 0x50bc20
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x61c
mov edi, dword [esp + 0x62c]
lea eax, [esp + 0x20]
push 0x200
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x573e78
lea ebx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x1f4
mov eax, dword [esp + 0x630]
mov ecx, dword [esp + 0x634]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
sub esp, 0x20
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
movups xmm0, xmmword [esp + 0x658]
movups xmmword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0050c0c0
add esp, 0x20
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
mov esi, eax
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
add esp, 4
test eax, eax
je 0x50bd57
lea edi, [esp + 0x220]
push 0x3fc
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
sub esp, 8
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.0050ad80
mov dword [esp], 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
mov ecx, dword [esp + 0x228]
add ecx, 0xffffffff
mov edx, esp
push 0
push edx
push ecx
push dword [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x50bd8a
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x230]
cmp eax, ecx
je 0x50bd6f
push eax
call fcn.0041a380
add esp, 4
jmp 0x50bd6f
mov esi, dword [esp + 0x20]
push edi
push esi
push 1
push dword [esp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, esi
jb 0x50bdaa
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x50bd80
push eax
call fcn.0041a380
add esp, 4
add esp, 0x61c
pop esi
pop edi
pop ebx
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0xad8
jmp 0x50bdc8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0xa6
mov dword [esp + 8], str.external_fmtlib_include_fmt_format_inl.h
call fcn.0050a710
add esp, 0x14
call fcn.004949d0
nop dword [eax]
push ebx
push edi
push esi
sub esp, 0x214
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x14]
push 0x200
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x573e78
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x1f4
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
sub esp, 0x20
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
movups xmm0, xmmword [esp + 0x250]
movups xmmword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.0050c0c0
add esp, 0x20
mov ebx, dword [esp + 0x14]
push edi
push ebx
push 1
push dword [esp + 0x1c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, ebx
jb 0x50be9f
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x50be95
push eax
call fcn.0041a380
add esp, 4
add esp, 0x214
pop esi
pop edi
pop ebx
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x572e6c
mov dword [esp + 0xc], 0xa6
mov dword [esp + 8], str.external_fmtlib_include_fmt_format_inl.h
call fcn.0050a710
add esp, 0x14
call fcn.004949d0
nop word cs:[eax + eax]
nop dword [eax]
sub esp, 0x24
mov dword [esp], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
call fcn.0050bc20
add esp, 0x24
ret