Function at 0x14003a5c0
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, 0x718
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x700], rax
cmp dword [rsp + 0x740], 3
je 0x14003a614
cmp dword [rsp + 0x740], 2
je 0x14003a614
cmp dword [rsp + 0x740], 1
je 0x14003a614
mov eax, 0x10000
jmp 0x14003ad3e
cmp dword [rsp + 0x740], 3
jne 0x14003a797
mov rax, qword [rsp + 0x720]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x728], eax
je 0x14003a70c
mov rax, qword [rsp + 0x720]
cmp dword [rax + 8], 0xffffffff
je 0x14003a659
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003bdf0
nop
mov rax, qword [rsp + 0x720]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x728], eax
jl 0x14003a689
mov eax, 0x10000
jmp 0x14003ad3e
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x728], eax
jge 0x14003a6b1
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003cc90
nop
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x728]
cmp dword [rax + 0x14], ecx
jge 0x14003a6db
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003cb70
nop
jmp 0x14003a6b1
mov rax, qword [rsp + 0x720]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003c4b0
mov rax, qword [rsp + 0x720]
mov ecx, dword [rsp + 0x728]
mov dword [rax + 8], ecx
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x738]
mov rdx, qword [rsp + 0x730]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003bf00
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jg 0x14003a75b
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003bdf0
mov rax, qword [rsp + 0x720]
mov dword [rax + 8], 0xffffffff
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x14003a76b
xor eax, eax
jmp 0x14003ad3e
cmp dword [rsp + 0x4c], 0
jle 0x14003a77c
mov eax, 0x600
jmp 0x14003ad3e
cmp dword [rsp + 0x4c], 0xffffff96
jne 0x14003a78d
mov eax, 0x1000
jmp 0x14003ad3e
mov eax, 0x5000000
jmp 0x14003ad3e
mov rax, qword [rsp + 0x720]
cmp dword [rax + 8], 0xffffffff
je 0x14003a7b6
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003bdf0
nop
mov rax, qword [rsp + 0x720]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x728], eax
jl 0x14003a7e6
mov eax, 0x10000
jmp 0x14003ad3e
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x728], eax
jge 0x14003a80e
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003cc90
nop
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x728]
cmp dword [rax + 0x14], ecx
jge 0x14003a838
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003cb70
nop
jmp 0x14003a80e
lea r8, [rsp + 0xb0]
mov edx, dword [rsp + 0x728]
mov rcx, qword [rsp + 0x720]
call fcn.14003af70
nop
mov eax, dword [rsp + 0x2bc]
and eax, 0x10
test eax, eax
je 0x14003a936
cmp dword [rsp + 0x740], 1
jne 0x14003a878
xor eax, eax
jmp 0x14003ad3e
mov rax, qword [rsp + 0x730]
mov qword [rsp + 0x50], rax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
je 0x14003a8ea
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x5c
je 0x14003a8ea
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
test eax, eax
je 0x14003a8e0
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x3a
je 0x14003a8ea
mov dword [rsp + 0x68], 0
jmp 0x14003a8f2
mov dword [rsp + 0x68], 1
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x45], al
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x14003a913
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call fcn.14003ad60
nop
jmp 0x14003a92f
mov rax, qword [rsp + 0x720]
add rax, 0x250
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.14003ad60
nop
xor eax, eax
jmp 0x14003ad3e
cmp dword [rsp + 0x740], 1
jne 0x14003a952
mov rax, qword [rsp + 0x730]
mov qword [rsp + 0x70], rax
jmp 0x14003ab97
mov rax, qword [rsp + 0x730]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
test eax, eax
je 0x14003a9b7
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x14003a999
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x14003a9a7
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
jmp 0x14003a973
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2e0]
call fcn.14001c688
nop
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x60], rax
jne 0x14003aa11
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x208
jae 0x14003a9f7
jmp 0x14003a9fd
call fcn.14000e1a4
nop
xor eax, eax
mov rcx, qword [rsp + 0x88]
mov word [rsp + rcx + 0x2e0], ax
jmp 0x14003aa57
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0x208
jae 0x14003aa3f
jmp 0x14003aa45
call fcn.14000e1a4
nop
xor eax, eax
mov rcx, qword [rsp + 0x90]
mov word [rsp + rcx + 0x2e0], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2e0]
cmp eax, 0x2f
je 0x14003aab8
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2e0]
cmp eax, 0x5c
je 0x14003aab8
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2e0]
test eax, eax
je 0x14003aaae
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x2e0]
cmp eax, 0x3a
je 0x14003aab8
mov dword [rsp + 0x6c], 0
jmp 0x14003aac0
mov dword [rsp + 0x6c], 1
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x46], al
movzx eax, byte [rsp + 0x46]
test eax, eax
je 0x14003ab06
mov r9, qword [rsp + 0x60]
lea r8, [rsp + 0x2e0]
lea rdx, str._s_s
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x2e0]
xor ecx, ecx
call fcn.14003ad60
nop
jmp 0x14003ab5d
mov rax, qword [rsp + 0x720]
add rax, 0x250
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x2e0]
mov r8, rax
lea rdx, str._s_s_s
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [rsp + 0x720]
add rax, 0x250
lea rdx, [rsp + 0x2e0]
mov rcx, rax
call fcn.14003ad60
nop
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x2bc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14003aba9
mov eax, 0x200
jmp 0x14003ad3e
mov rax, qword [rsp + 0x720]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003c4b0
nop
mov rax, qword [rsp + 0x720]
cmp qword [rax + 0x248], 0
jne 0x14003ac04
mov ecx, 0x4000
call fcn.14000e458
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x720]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 0x248], rcx
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x14003acdd
lea r9, [rsp + 0x47]
mov r8d, 0x4000
mov rax, qword [rsp + 0x720]
mov rdx, qword [rax + 0x248]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003bf00
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffff96
jne 0x14003ac59
mov dword [rsp + 0x40], 0x1000
jmp 0x14003acdd
cmp dword [rsp + 0x48], 0
jge 0x14003ac6a
mov dword [rsp + 0x40], 0x5000000
jmp 0x14003acdd
cmp dword [rsp + 0x48], 0
jle 0x14003acbc
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x720]
mov rdx, qword [rax + 0x248]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x14003acbc
mov dword [rsp + 0x40], 0x400
jmp 0x14003acdd
movzx eax, byte [rsp + 0x47]
test eax, eax
je 0x14003acc7
jmp 0x14003acdd
cmp dword [rsp + 0x48], 0
jne 0x14003acd8
mov dword [rsp + 0x40], 0x5000000
jmp 0x14003acdd
jmp 0x14003ac0c
cmp dword [rsp + 0x40], 0
jne 0x14003ad08
lea r9, [rsp + 0x2d0]
lea r8, [rsp + 0x2c0]
lea rdx, [rsp + 0x2c8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
nop
cmp dword [rsp + 0x740], 1
je 0x14003ad1e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14003bdf0
nop
cmp dword [rsp + 0x40], 0
je 0x14003ad3c
mov eax, dword [rsp + 0x40]
jmp 0x14003ad3e
xor eax, eax
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.14000de10
add rsp, 0x718
ret