Function at 0x14000cf00
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x408
mov rax, qword [0x14009e1c0]
xor rax, rsp
mov qword [rsp + 0x3f8], rax
cmp dword [rsp + 0x430], 3
je 0x14000cf54
cmp dword [rsp + 0x430], 2
je 0x14000cf54
cmp dword [rsp + 0x430], 1
je 0x14000cf54
mov eax, 0x10000
jmp 0x14000d66e
cmp dword [rsp + 0x430], 3
jne 0x14000d0e8
mov rax, qword [rsp + 0x410]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x418], eax
je 0x14000d04a
mov rax, qword [rsp + 0x410]
cmp dword [rax + 8], 0xffffffff
je 0x14000cf98
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000bd60
mov rax, qword [rsp + 0x410]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x410]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x418], eax
jl 0x14000cfc8
mov eax, 0x10000
jmp 0x14000d66e
mov rax, qword [rsp + 0x410]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x418], eax
jge 0x14000cfef
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000af40
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x418]
cmp dword [rcx + 0x14], eax
jge 0x14000d018
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000b000
jmp 0x14000cfef
mov rdx, qword [rsp + 0x410]
mov rdx, qword [rdx + 0x140]
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000b410
mov r11, qword [rsp + 0x410]
mov eax, dword [rsp + 0x418]
mov dword [r11 + 8], eax
lea r9, [rsp + 0x188]
mov r8d, dword [rsp + 0x428]
mov rdx, qword [rsp + 0x420]
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000b7b0
mov dword [rsp + 0x184], eax
cmp dword [rsp + 0x184], 0
jg 0x14000d0a3
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000bd60
mov r11, qword [rsp + 0x410]
mov dword [r11 + 8], 0xffffffff
movzx eax, byte [rsp + 0x188]
test eax, eax
je 0x14000d0b6
xor eax, eax
jmp 0x14000d66e
cmp dword [rsp + 0x184], 0
jle 0x14000d0ca
mov eax, 0x600
jmp 0x14000d66e
cmp dword [rsp + 0x184], 0xffffff96
jne 0x14000d0de
mov eax, 0x1000
jmp 0x14000d66e
mov eax, 0x5000000
jmp 0x14000d66e
mov rax, qword [rsp + 0x410]
cmp dword [rax + 8], 0xffffffff
je 0x14000d106
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000bd60
mov rax, qword [rsp + 0x410]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x410]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x418], eax
jl 0x14000d136
mov eax, 0x10000
jmp 0x14000d66e
mov rax, qword [rsp + 0x410]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x418], eax
jge 0x14000d15d
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000af40
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x418]
cmp dword [rcx + 0x14], eax
jge 0x14000d186
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000b000
jmp 0x14000d15d
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0x418]
mov rcx, qword [rsp + 0x410]
call fcn.14000c120
mov eax, dword [rsp + 0x158]
and eax, 0x10
test eax, eax
je 0x14000d279
cmp dword [rsp + 0x430], 1
jne 0x14000d1c2
xor eax, eax
jmp 0x14000d66e
mov rax, qword [rsp + 0x420]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x14000d21f
mov rax, qword [rsp + 0x190]
movsx eax, byte [rax]
cmp eax, 0x5c
je 0x14000d21f
mov rax, qword [rsp + 0x190]
movsx eax, byte [rax]
test eax, eax
je 0x14000d212
mov rax, qword [rsp + 0x190]
movsx eax, byte [rax + 1]
cmp eax, 0x3a
je 0x14000d21f
mov dword [rsp + 0x3f0], 0
jmp 0x14000d22a
mov dword [rsp + 0x3f0], 1
movzx eax, byte [rsp + 0x3f0]
mov byte [rsp + 0x189], al
movzx eax, byte [rsp + 0x189]
test eax, eax
je 0x14000d256
mov rdx, qword [rsp + 0x190]
xor ecx, ecx
call fcn.14000cd40
jmp 0x14000d272
mov rcx, qword [rsp + 0x410]
add rcx, 0x150
mov rdx, qword [rsp + 0x190]
call fcn.14000cd40
xor eax, eax
jmp 0x14000d66e
cmp dword [rsp + 0x430], 1
jne 0x14000d295
mov rax, qword [rsp + 0x420]
mov qword [rsp + 0x40], rax
jmp 0x14000d495
mov rax, qword [rsp + 0x420]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x3d0], rax
mov rax, qword [rsp + 0x3d0]
movsx eax, byte [rax]
test eax, eax
je 0x14000d31e
mov rax, qword [rsp + 0x3d0]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x14000d2f4
mov rax, qword [rsp + 0x3d0]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x14000d308
mov rax, qword [rsp + 0x3d0]
add rax, 1
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x3d0]
add rax, 1
mov qword [rsp + 0x3d0], rax
jmp 0x14000d2c5
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x2c0]
call fcn.140023d00
mov rax, qword [rsp + 0x1a0]
cmp qword [rsp + 0x1a8], rax
jne 0x14000d34f
mov byte [rsp + 0x2c0], 0
jmp 0x14000d36a
mov rcx, qword [rsp + 0x1a0]
mov rax, qword [rsp + 0x1a8]
sub rax, rcx
mov byte [rsp + rax + 0x2c0], 0
movsx eax, byte [rsp + 0x2c0]
cmp eax, 0x2f
je 0x14000d3aa
movsx eax, byte [rsp + 0x2c0]
cmp eax, 0x5c
je 0x14000d3aa
movsx eax, byte [rsp + 0x2c0]
test eax, eax
je 0x14000d39d
movsx eax, byte [rsp + 0x2c1]
cmp eax, 0x3a
je 0x14000d3aa
mov dword [rsp + 0x3f4], 0
jmp 0x14000d3b5
mov dword [rsp + 0x3f4], 1
movzx eax, byte [rsp + 0x3f4]
mov byte [rsp + 0x198], al
movzx eax, byte [rsp + 0x198]
test eax, eax
je 0x14000d406
mov r9, qword [rsp + 0x1a8]
lea r8, [rsp + 0x2c0]
lea rdx, str._s_s
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rsp + 0x2c0]
xor ecx, ecx
call fcn.14000cd40
jmp 0x14000d45b
mov r8, qword [rsp + 0x410]
add r8, 0x150
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c0]
lea rdx, [0x14007f4fc]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [rsp + 0x410]
add rcx, 0x150
lea rdx, [rsp + 0x2c0]
call fcn.14000cd40
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14000d4a7
mov eax, 0x200
jmp 0x14000d66e
mov rdx, qword [rsp + 0x410]
mov rdx, qword [rdx + 0x140]
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000b410
mov rax, qword [rsp + 0x410]
cmp qword [rax + 0x148], 0
jne 0x14000d501
mov ecx, 0x4000
call fcn.14000fa78
mov qword [rsp + 0x3e8], rax
mov rcx, qword [rsp + 0x410]
mov rax, qword [rsp + 0x3e8]
mov qword [rcx + 0x148], rax
mov dword [rsp + 0x180], 0
cmp dword [rsp + 0x180], 0
jne 0x14000d607
lea r9, [rsp + 0x3dc]
mov r8d, 0x4000
mov rdx, qword [rsp + 0x410]
mov rdx, qword [rdx + 0x148]
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000b7b0
mov dword [rsp + 0x3d8], eax
cmp dword [rsp + 0x3d8], 0xffffff96
jne 0x14000d568
mov dword [rsp + 0x180], 0x1000
jmp 0x14000d607
cmp dword [rsp + 0x3d8], 0
jge 0x14000d582
mov dword [rsp + 0x180], 0x5000000
jmp 0x14000d607
cmp dword [rsp + 0x3d8], 0
jle 0x14000d5dd
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3e4]
mov r8d, dword [rsp + 0x3d8]
mov rdx, qword [rsp + 0x410]
mov rdx, qword [rdx + 0x148]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x3e0], eax
cmp dword [rsp + 0x3e0], 0
jne 0x14000d5dd
mov dword [rsp + 0x180], 0x400
jmp 0x14000d607
movzx eax, byte [rsp + 0x3dc]
test eax, eax
je 0x14000d5eb
jmp 0x14000d607
cmp dword [rsp + 0x3d8], 0
jne 0x14000d602
mov dword [rsp + 0x180], 0x5000000
jmp 0x14000d607
jmp 0x14000d50c
cmp dword [rsp + 0x180], 0
jne 0x14000d634
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [rsp + 0x430], 1
je 0x14000d649
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x410]
mov rcx, qword [rcx]
call fcn.14000bd60
cmp dword [rsp + 0x180], 0
je 0x14000d66c
mov eax, dword [rsp + 0x180]
jmp 0x14000d66e
xor eax, eax
mov rcx, qword [rsp + 0x3f8]
xor rcx, rsp
call fcn.140023dd0
add rsp, 0x408
ret