Function at 0x140004e30
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rdi, rsp
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x150]
mov rax, qword [0x140016010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0xc8], 0xffffffff
mov eax, dword [rsp + 0x158]
cmp dword [rsp + 0xc8], eax
jne 0x140004e92
mov dword [rsp + 0x110], 1
jmp 0x140004e9d
mov dword [rsp + 0x110], 0
mov ecx, dword [rsp + 0x110]
call fcn.14000b9f8
movzx eax, al
test eax, eax
je 0x140004f03
cmp dword [rsp + 0x158], 0xffffffff
je 0x140004eca
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x114], eax
jmp 0x140004ef7
xor eax, eax
cmp eax, 0xffffffff
jne 0x140004ede
mov dword [rsp + 0x118], 1
jmp 0x140004ee9
mov dword [rsp + 0x118], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x114], eax
mov eax, dword [rsp + 0x114]
jmp 0x140005249
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140004f9b
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x58]
movsxd rax, dword [rax]
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
cmp qword [rsp + 0xd8], rax
jae 0x140004f9b
mov ecx, dword [rsp + 0x158]
call fcn.14000b9f8
mov byte [rsp + 0xe0], al
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
movzx ecx, byte [rsp + 0xe0]
mov byte [rax], cl
mov eax, dword [rsp + 0x158]
jmp 0x140005249
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x80], 0
jne 0x140004fb7
mov eax, 0xffffffff
jmp 0x140005249
mov rcx, qword [rsp + 0x150]
call fcn.1400068e0
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x68], 0
jne 0x140005070
mov ecx, dword [rsp + 0x158]
call fcn.14000b9f8
mov byte [rsp + 0xf0], al
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0xf8], rax
movsx eax, byte [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
je 0x14000502b
mov dword [rsp + 0x11c], 1
jmp 0x140005036
mov dword [rsp + 0x11c], 0
mov ecx, dword [rsp + 0x11c]
call fcn.14000b9f8
movzx eax, al
test eax, eax
je 0x140005059
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x120], eax
jmp 0x140005064
mov dword [rsp + 0x120], 0xffffffff
mov eax, dword [rsp + 0x120]
jmp 0x140005249
mov qword [rsp + 0x40], 0x20
mov ecx, dword [rsp + 0x158]
call fcn.14000b9f8
mov byte [rsp + 0x94], al
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x95]
mov rdx, qword [rsp + 0x150]
add rdx, 0x74
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x94]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x124], eax
cmp dword [rsp + 0x124], 0
jl 0x140005244
cmp dword [rsp + 0x124], 1
jle 0x14000511d
cmp dword [rsp + 0x124], 3
je 0x1400051b2
jmp 0x140005244
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jbe 0x14000517e
mov rax, qword [rsp + 0x150]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0xb8]
mov edx, 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0xb8], rax
je 0x14000517e
mov eax, 0xffffffff
jmp 0x140005249
mov rax, qword [rsp + 0x150]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x94]
cmp qword [rsp + 0xa8], rax
je 0x1400051a8
mov eax, dword [rsp + 0x158]
jmp 0x140005249
mov eax, 0xffffffff
jmp 0x140005249
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x108], rax
movzx eax, byte [rsp + 0x94]
mov byte [rsp + 0x100], al
movsx eax, byte [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
je 0x140005202
mov dword [rsp + 0x128], 1
jmp 0x14000520d
mov dword [rsp + 0x128], 0
mov ecx, dword [rsp + 0x128]
call fcn.14000b9f8
movzx eax, al
test eax, eax
je 0x140005230
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x12c], eax
jmp 0x14000523b
mov dword [rsp + 0x12c], 0xffffffff
mov eax, dword [rsp + 0x12c]
jmp 0x140005249
mov eax, 0xffffffff
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010430]
call fcn.14000b86c
mov rax, rdi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14000a1f0
add rsp, 0x140
pop rdi
ret