Function at 0x1400039b0
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 [0x140012010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0xc8], 0xffffffff
mov eax, dword [rsp + 0x158]
cmp dword [rsp + 0xc8], eax
jne 0x140003a12
mov dword [rsp + 0x110], 1
jmp 0x140003a1d
mov dword [rsp + 0x110], 0
mov ecx, dword [rsp + 0x110]
call fcn.140009cbc
movzx eax, al
test eax, eax
je 0x140003a83
cmp dword [rsp + 0x158], 0xffffffff
je 0x140003a4a
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x114], eax
jmp 0x140003a77
xor eax, eax
cmp eax, 0xffffffff
jne 0x140003a5e
mov dword [rsp + 0x118], 1
jmp 0x140003a69
mov dword [rsp + 0x118], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x114], eax
mov eax, dword [rsp + 0x114]
jmp 0x140003dc9
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 0x140003b1b
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 0x140003b1b
mov ecx, dword [rsp + 0x158]
call fcn.140009cbc
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 0x140003dc9
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x80], 0
jne 0x140003b37
mov eax, 0xffffffff
jmp 0x140003dc9
mov rcx, qword [rsp + 0x150]
call fcn.140005140
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x68], 0
jne 0x140003bf0
mov ecx, dword [rsp + 0x158]
call fcn.140009cbc
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 0x140003bab
mov dword [rsp + 0x11c], 1
jmp 0x140003bb6
mov dword [rsp + 0x11c], 0
mov ecx, dword [rsp + 0x11c]
call fcn.140009cbc
movzx eax, al
test eax, eax
je 0x140003bd9
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x120], eax
jmp 0x140003be4
mov dword [rsp + 0x120], 0xffffffff
mov eax, dword [rsp + 0x120]
jmp 0x140003dc9
mov qword [rsp + 0x40], 0x20
mov ecx, dword [rsp + 0x158]
call fcn.140009cbc
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 0x140003dc4
cmp dword [rsp + 0x124], 1
jle 0x140003c9d
cmp dword [rsp + 0x124], 3
je 0x140003d32
jmp 0x140003dc4
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 0x140003cfe
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 0x140003cfe
mov eax, 0xffffffff
jmp 0x140003dc9
mov rax, qword [rsp + 0x150]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x94]
cmp qword [rsp + 0xa8], rax
je 0x140003d28
mov eax, dword [rsp + 0x158]
jmp 0x140003dc9
mov eax, 0xffffffff
jmp 0x140003dc9
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 0x140003d82
mov dword [rsp + 0x128], 1
jmp 0x140003d8d
mov dword [rsp + 0x128], 0
mov ecx, dword [rsp + 0x128]
call fcn.140009cbc
movzx eax, al
test eax, eax
je 0x140003db0
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x12c], eax
jmp 0x140003dbb
mov dword [rsp + 0x12c], 0xffffffff
mov eax, dword [rsp + 0x12c]
jmp 0x140003dc9
mov eax, 0xffffffff
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000d120]
call fcn.140009b30
mov rax, rdi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008570
add rsp, 0x140
pop rdi
ret