Function at 0x140005ad0
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 + 0x138], rax
mov dword [rsp + 0xc8], 0xffffffff
mov eax, dword [rsp + 0x158]
cmp dword [rsp + 0xc8], eax
jne 0x140005b32
mov dword [rsp + 0x108], 1
jmp 0x140005b3d
mov dword [rsp + 0x108], 0
mov ecx, dword [rsp + 0x108]
call fcn.14000c740
movzx eax, al
test eax, eax
je 0x140005ba3
cmp dword [rsp + 0x158], 0xffffffff
je 0x140005b6a
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x10c], eax
jmp 0x140005b97
xor eax, eax
cmp eax, 0xffffffff
jne 0x140005b7e
mov dword [rsp + 0x110], 1
jmp 0x140005b89
mov dword [rsp + 0x110], 0
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x10c], eax
mov eax, dword [rsp + 0x10c]
jmp 0x140005ef9
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 0x140005c3b
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 0x140005c3b
mov ecx, dword [rsp + 0x158]
call fcn.14000c740
mov byte [rsp + 0x114], 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 + 0x114]
mov byte [rax], cl
mov eax, dword [rsp + 0x158]
jmp 0x140005ef9
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x80], 0
jne 0x140005c57
mov eax, 0xffffffff
jmp 0x140005ef9
mov rcx, qword [rsp + 0x150]
call fcn.1400077b0
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x68], 0
jne 0x140005d10
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0xf0], rax
mov ecx, dword [rsp + 0x158]
call fcn.14000c740
mov byte [rsp + 0xe8], al
movsx eax, byte [rsp + 0xe8]
mov rdx, qword [rsp + 0xf0]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
je 0x140005ccb
mov dword [rsp + 0x118], 1
jmp 0x140005cd6
mov dword [rsp + 0x118], 0
mov ecx, dword [rsp + 0x118]
call fcn.14000c740
movzx eax, al
test eax, eax
je 0x140005cf9
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x11c], eax
jmp 0x140005d04
mov dword [rsp + 0x11c], 0xffffffff
mov eax, dword [rsp + 0x11c]
jmp 0x140005ef9
mov qword [rsp + 0x40], 0x20
mov ecx, dword [rsp + 0x158]
call fcn.14000c740
mov byte [rsp + 0x94], al
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x120], rax
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 rcx, qword [rsp + 0x120]
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 + 0x128], eax
cmp dword [rsp + 0x128], 0
jl 0x140005ef4
cmp dword [rsp + 0x128], 1
jle 0x140005dcd
cmp dword [rsp + 0x128], 3
je 0x140005e62
jmp 0x140005ef4
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 0x140005e2e
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 0x140005e2e
mov eax, 0xffffffff
jmp 0x140005ef9
mov rax, qword [rsp + 0x150]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x94]
cmp qword [rsp + 0xa8], rax
je 0x140005e58
mov eax, dword [rsp + 0x158]
jmp 0x140005ef9
mov eax, 0xffffffff
jmp 0x140005ef9
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x100], rax
movzx eax, byte [rsp + 0x94]
mov byte [rsp + 0xf8], al
movsx eax, byte [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
je 0x140005eb2
mov dword [rsp + 0x12c], 1
jmp 0x140005ebd
mov dword [rsp + 0x12c], 0
mov ecx, dword [rsp + 0x12c]
call fcn.14000c740
movzx eax, al
test eax, eax
je 0x140005ee0
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x130], eax
jmp 0x140005eeb
mov dword [rsp + 0x130], 0xffffffff
mov eax, dword [rsp + 0x130]
jmp 0x140005ef9
mov eax, 0xffffffff
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010670]
call fcn.14000c5b4
mov rax, rdi
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14000afd0
add rsp, 0x140
pop rdi
ret