Function at 0x14015dff0
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, 0x738
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x720], rax
cmp dword [rsp + 0x760], 3
je 0x14015e044
cmp dword [rsp + 0x760], 2
je 0x14015e044
cmp dword [rsp + 0x760], 1
je 0x14015e044
mov eax, 0x10000
jmp 0x14015e7d3
cmp dword [rsp + 0x760], 3
jne 0x14015e1ca
mov rax, qword [rsp + 0x740]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x748], eax
je 0x14015e139
mov rax, qword [rsp + 0x740]
cmp dword [rax + 8], 0xffffffff
je 0x14015e088
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015c990
mov rax, qword [rsp + 0x740]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x740]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x748], eax
jl 0x14015e0b8
mov eax, 0x10000
jmp 0x14015e7d3
mov rax, qword [rsp + 0x740]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x748], eax
jge 0x14015e0df
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015b9b0
mov rax, qword [rsp + 0x740]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x748]
cmp dword [rax + 0x14], ecx
jge 0x14015e108
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015ba80
jmp 0x14015e0df
mov rax, qword [rsp + 0x740]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015bff0
mov rax, qword [rsp + 0x740]
mov ecx, dword [rsp + 0x748]
mov dword [rax + 8], ecx
lea r9, [rsp + 0x2f0]
mov r8d, dword [rsp + 0x758]
mov rdx, qword [rsp + 0x750]
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015c3d0
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jg 0x14015e18b
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015c990
mov rax, qword [rsp + 0x740]
mov dword [rax + 8], 0xffffffff
movzx eax, byte [rsp + 0x2f0]
test eax, eax
je 0x14015e19e
xor eax, eax
jmp 0x14015e7d3
cmp dword [rsp + 0x4c], 0
jle 0x14015e1af
mov eax, 0x600
jmp 0x14015e7d3
cmp dword [rsp + 0x4c], 0xffffff96
jne 0x14015e1c0
mov eax, 0x1000
jmp 0x14015e7d3
mov eax, 0x5000000
jmp 0x14015e7d3
mov rax, qword [rsp + 0x740]
cmp dword [rax + 8], 0xffffffff
je 0x14015e1e8
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015c990
mov rax, qword [rsp + 0x740]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x740]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x748], eax
jl 0x14015e218
mov eax, 0x10000
jmp 0x14015e7d3
mov rax, qword [rsp + 0x740]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x748], eax
jge 0x14015e23f
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015b9b0
mov rax, qword [rsp + 0x740]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x748]
cmp dword [rax + 0x14], ecx
jge 0x14015e268
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015ba80
jmp 0x14015e23f
lea r8, [rsp + 0xc0]
mov edx, dword [rsp + 0x748]
mov rcx, qword [rsp + 0x740]
call fcn.14015cf60
mov eax, dword [rsp + 0x2cc]
and eax, 0x10
test eax, eax
je 0x14015e363
cmp dword [rsp + 0x760], 1
jne 0x14015e2a7
xor eax, eax
jmp 0x14015e7d3
mov rax, qword [rsp + 0x750]
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 0x14015e319
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x5c
je 0x14015e319
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
test eax, eax
je 0x14015e30f
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x3a
je 0x14015e319
mov dword [rsp + 0x68], 0
jmp 0x14015e321
mov dword [rsp + 0x68], 1
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x44], al
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x14015e341
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call fcn.14015dd70
jmp 0x14015e35c
mov rax, qword [rsp + 0x740]
add rax, 0x254
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.14015dd70
xor eax, eax
jmp 0x14015e7d3
cmp dword [rsp + 0x760], 1
jne 0x14015e37f
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x70], rax
jmp 0x14015e62a
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
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 0x14015e3ea
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x14015e3cc
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x14015e3da
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 0x14015e3a6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x300]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x90]
movzx eax, word [rax]
mov word [rsp + 0x46], ax
mov rax, qword [rsp + 0x78]
movzx ecx, word [rsp + 0x46]
mov word [rax], cx
mov rax, qword [rsp + 0x90]
add rax, 2
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
cmp word [rsp + 0x46], 0
jne 0x14015e414
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x60], rax
jne 0x14015e4a4
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0x208
jae 0x14015e48b
jmp 0x14015e490
call fcn.14027ffc0
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rsp + rcx + 0x300], ax
jmp 0x14015e4ec
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x208
jae 0x14015e4d5
jmp 0x14015e4da
call fcn.14027ffc0
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rsp + rcx + 0x300], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x300]
cmp eax, 0x2f
je 0x14015e54d
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x300]
cmp eax, 0x5c
je 0x14015e54d
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x300]
test eax, eax
je 0x14015e543
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x300]
cmp eax, 0x3a
je 0x14015e54d
mov dword [rsp + 0x6c], 0
jmp 0x14015e555
mov dword [rsp + 0x6c], 1
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x45], al
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x14015e59a
mov r9, qword [rsp + 0x60]
lea r8, [rsp + 0x300]
lea rdx, [0x140366618]
lea rcx, [rsp + 0x510]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x300]
xor ecx, ecx
call fcn.14015dd70
jmp 0x14015e5f0
mov rax, qword [rsp + 0x740]
add rax, 0x254
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x300]
mov r8, rax
lea rdx, str._s_s_s
lea rcx, [rsp + 0x510]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [rsp + 0x740]
add rax, 0x254
lea rdx, [rsp + 0x300]
mov rcx, rax
call fcn.14015dd70
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x2cc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14015e63c
mov eax, 0x200
jmp 0x14015e7d3
mov rax, qword [rsp + 0x740]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015bff0
mov rax, qword [rsp + 0x740]
cmp qword [rax + 0x248], 0
jne 0x14015e696
mov ecx, 0x4000
call fcn.14027fa00
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x740]
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 0x248], rcx
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x14015e775
lea r9, [rsp + 0x2f1]
mov r8d, 0x4000
mov rax, qword [rsp + 0x740]
mov rdx, qword [rax + 0x248]
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015c3d0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffff96
jne 0x14015e6ee
mov dword [rsp + 0x40], 0x1000
jmp 0x14015e775
cmp dword [rsp + 0x48], 0
jge 0x14015e6ff
mov dword [rsp + 0x40], 0x5000000
jmp 0x14015e775
cmp dword [rsp + 0x48], 0
jle 0x14015e751
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2f4]
mov r8d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x740]
mov rdx, qword [rax + 0x248]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jne 0x14015e751
mov dword [rsp + 0x40], 0x400
jmp 0x14015e775
movzx eax, byte [rsp + 0x2f1]
test eax, eax
je 0x14015e75f
jmp 0x14015e775
cmp dword [rsp + 0x48], 0
jne 0x14015e770
mov dword [rsp + 0x40], 0x5000000
jmp 0x14015e775
jmp 0x14015e69e
cmp dword [rsp + 0x40], 0
jne 0x14015e79f
lea r9, [rsp + 0x2e0]
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x2d8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [rsp + 0x760], 1
je 0x14015e7b4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x740]
mov rcx, qword [rax]
call fcn.14015c990
cmp dword [rsp + 0x40], 0
je 0x14015e7d1
mov eax, dword [rsp + 0x40]
jmp 0x14015e7d3
xor eax, eax
mov rcx, qword [rsp + 0x720]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x738
ret