Function at 0x140022b70
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, 0x728
mov rax, qword [0x1401deb80]
xor rax, rsp
mov qword [rsp + 0x710], rax
cmp dword [rsp + 0x750], 3
je 0x140022bc4
cmp dword [rsp + 0x750], 2
je 0x140022bc4
cmp dword [rsp + 0x750], 1
je 0x140022bc4
mov eax, 0x10000
jmp 0x14002335d
cmp dword [rsp + 0x750], 3
jne 0x140022d44
mov rax, qword [rsp + 0x730]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x738], eax
je 0x140022cb9
mov rax, qword [rsp + 0x730]
cmp dword [rax + 8], 0xffffffff
je 0x140022c08
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.1400217a0
mov rax, qword [rsp + 0x730]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x738], eax
jl 0x140022c38
mov eax, 0x10000
jmp 0x14002335d
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x738], eax
jge 0x140022c5f
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.140020940
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x738]
cmp dword [rax + 0x14], ecx
jge 0x140022c88
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.140020a10
jmp 0x140022c5f
mov rax, qword [rsp + 0x730]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.140020e20
mov rax, qword [rsp + 0x730]
mov ecx, dword [rsp + 0x738]
mov dword [rax + 8], ecx
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x748]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.1400211e0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jg 0x140022d08
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.1400217a0
mov rax, qword [rsp + 0x730]
mov dword [rax + 8], 0xffffffff
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140022d18
xor eax, eax
jmp 0x14002335d
cmp dword [rsp + 0x50], 0
jle 0x140022d29
mov eax, 0x600
jmp 0x14002335d
cmp dword [rsp + 0x50], 0xffffff96
jne 0x140022d3a
mov eax, 0x1000
jmp 0x14002335d
mov eax, 0x5000000
jmp 0x14002335d
mov rax, qword [rsp + 0x730]
cmp dword [rax + 8], 0xffffffff
je 0x140022d62
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.1400217a0
mov rax, qword [rsp + 0x730]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x738], eax
jl 0x140022d92
mov eax, 0x10000
jmp 0x14002335d
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x738], eax
jge 0x140022db9
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.140020940
mov rax, qword [rsp + 0x730]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x738]
cmp dword [rax + 0x14], ecx
jge 0x140022de2
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.140020a10
jmp 0x140022db9
lea r8, [rsp + 0xc0]
mov edx, dword [rsp + 0x738]
mov rcx, qword [rsp + 0x730]
call fcn.140021be0
mov eax, dword [rsp + 0x2cc]
and eax, 0x10
test eax, eax
je 0x140022e16
mov dword [rsp + 0x70], 1
jmp 0x140022e1e
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x45], al
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x140022f01
cmp dword [rsp + 0x750], 1
jne 0x140022e45
xor eax, eax
jmp 0x14002335d
mov rax, qword [rsp + 0x740]
mov qword [rsp + 0x58], rax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
je 0x140022eb7
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax]
cmp eax, 0x5c
je 0x140022eb7
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140022ead
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax]
cmp eax, 0x3a
je 0x140022eb7
mov dword [rsp + 0x74], 0
jmp 0x140022ebf
mov dword [rsp + 0x74], 1
movzx eax, byte [rsp + 0x74]
mov byte [rsp + 0x46], al
movzx eax, byte [rsp + 0x46]
test eax, eax
je 0x140022edf
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call fcn.1400227f0
jmp 0x140022efa
mov rax, qword [rsp + 0x730]
add rax, 0x250
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1400227f0
xor eax, eax
jmp 0x14002335d
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0x208
jae 0x140022f22
jmp 0x140022f27
call fcn.14014a0b0
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rsp + rcx + 0x500], ax
cmp dword [rsp + 0x750], 1
jne 0x140022f58
mov rax, qword [rsp + 0x740]
mov qword [rsp + 0x80], rax
jmp 0x1400231ae
mov rax, qword [rsp + 0x740]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
test eax, eax
je 0x140022fc3
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x140022fa5
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140022fb3
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x60], rax
jmp 0x140022f7f
mov r8d, 0x104
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x2f0]
call fcn.1401531ec
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x68], rax
jne 0x140023027
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x208
jae 0x14002300e
jmp 0x140023013
call fcn.14014a0b0
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rsp + rcx + 0x2f0], ax
jmp 0x14002306f
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0x208
jae 0x140023058
jmp 0x14002305d
call fcn.14014a0b0
xor eax, eax
mov rcx, qword [rsp + 0xa8]
mov word [rsp + rcx + 0x2f0], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2f0]
cmp eax, 0x2f
je 0x1400230d0
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2f0]
cmp eax, 0x5c
je 0x1400230d0
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2f0]
test eax, eax
je 0x1400230c6
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x2f0]
cmp eax, 0x3a
je 0x1400230d0
mov dword [rsp + 0x78], 0
jmp 0x1400230d8
mov dword [rsp + 0x78], 1
movzx eax, byte [rsp + 0x78]
mov byte [rsp + 0x47], al
movzx eax, byte [rsp + 0x47]
test eax, eax
je 0x14002311c
mov r9, qword [rsp + 0x68]
lea r8, [rsp + 0x2f0]
lea rdx, [0x1401b29d0]
lea rcx, [rsp + 0x500]
call fcn.140018530
lea rdx, [rsp + 0x2f0]
xor ecx, ecx
call fcn.1400227f0
jmp 0x140023171
mov rax, qword [rsp + 0x730]
add rax, 0x250
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x2f0]
mov r8, rax
lea rdx, str._s_s_s
lea rcx, [rsp + 0x500]
call fcn.140018530
mov rax, qword [rsp + 0x730]
add rax, 0x250
lea rdx, [rsp + 0x2f0]
mov rcx, rax
call fcn.1400227f0
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 + 0x500]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0xffffffffffffffff
jne 0x1400231c3
mov eax, 0x200
jmp 0x14002335d
mov rax, qword [rsp + 0x730]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.140020e20
mov rax, qword [rsp + 0x730]
cmp qword [rax + 0x248], 0
jne 0x14002321d
mov ecx, 0x4000
call fcn.14014a244
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x730]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x248], rcx
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x1400232f9
lea r9, [rsp + 0x48]
mov r8d, 0x4000
mov rax, qword [rsp + 0x730]
mov rdx, qword [rax + 0x248]
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.1400211e0
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffff96
jne 0x140023272
mov dword [rsp + 0x40], 0x1000
jmp 0x1400232f9
cmp dword [rsp + 0x4c], 0
jge 0x140023283
mov dword [rsp + 0x40], 0x5000000
jmp 0x1400232f9
cmp dword [rsp + 0x4c], 0
jle 0x1400232d8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
mov r8d, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x730]
mov rdx, qword [rax + 0x248]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x1400232d8
mov dword [rsp + 0x40], 0x400
jmp 0x1400232f9
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x1400232e3
jmp 0x1400232f9
cmp dword [rsp + 0x4c], 0
jne 0x1400232f4
mov dword [rsp + 0x40], 0x5000000
jmp 0x1400232f9
jmp 0x140023225
mov rax, qword [rsp + 0x730]
mov rcx, qword [rax]
call fcn.1400217a0
cmp dword [rsp + 0x40], 0
jne 0x140023336
lea r9, [rsp + 0x2e0]
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x2d8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [rsp + 0x750], 1
je 0x14002334e
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], 0
je 0x14002335b
mov eax, dword [rsp + 0x40]
jmp 0x14002335d
xor eax, eax
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140149a30
add rsp, 0x728
ret