Function at 0x1400046d3
Capabilities:
Write file on windows

Disassembly:
jmp 0x140074640
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 [0x14023c868]
xor rax, rsp
mov qword [rsp + 0x700], rax
cmp dword [rsp + 0x740], 3
je 0x140074694
cmp dword [rsp + 0x740], 2
je 0x140074694
cmp dword [rsp + 0x740], 1
je 0x140074694
mov eax, 0x10000
jmp 0x140074dac
cmp dword [rsp + 0x740], 3
jne 0x140074814
mov rax, qword [rsp + 0x720]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x728], eax
je 0x140074789
mov rax, qword [rsp + 0x720]
cmp dword [rax + 8], 0xffffffff
je 0x1400746d8
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.1400083aa
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 0x140074708
mov eax, 0x10000
jmp 0x140074dac
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x728], eax
jge 0x14007472f
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14000668b
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x728]
cmp dword [rax + 0x14], ecx
jge 0x140074758
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14000633e
jmp 0x14007472f
mov rax, qword [rsp + 0x720]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.140006c80
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.1400022e8
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jg 0x1400747d8
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.1400083aa
mov rax, qword [rsp + 0x720]
mov dword [rax + 8], 0xffffffff
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x1400747e8
xor eax, eax
jmp 0x140074dac
cmp dword [rsp + 0x4c], 0
jle 0x1400747f9
mov eax, 0x600
jmp 0x140074dac
cmp dword [rsp + 0x4c], 0xffffff96
jne 0x14007480a
mov eax, 0x1000
jmp 0x140074dac
mov eax, 0x5000000
jmp 0x140074dac
mov rax, qword [rsp + 0x720]
cmp dword [rax + 8], 0xffffffff
je 0x140074832
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.1400083aa
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 0x140074862
mov eax, 0x10000
jmp 0x140074dac
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x728], eax
jge 0x140074889
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14000668b
mov rax, qword [rsp + 0x720]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x728]
cmp dword [rax + 0x14], ecx
jge 0x1400748b2
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.14000633e
jmp 0x140074889
lea r8, [rsp + 0xb0]
mov edx, dword [rsp + 0x728]
mov rcx, qword [rsp + 0x720]
call fcn.14000757c
mov eax, dword [rsp + 0x2bc]
and eax, 0x10
test eax, eax
je 0x1400749ad
cmp dword [rsp + 0x740], 1
jne 0x1400748f1
xor eax, eax
jmp 0x140074dac
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 0x140074963
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x5c
je 0x140074963
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140074959
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x3a
je 0x140074963
mov dword [rsp + 0x68], 0
jmp 0x14007496b
mov dword [rsp + 0x68], 1
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x45], al
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x14007498b
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call fcn.140004f66
jmp 0x1400749a6
mov rax, qword [rsp + 0x720]
add rax, 0x250
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.140004f66
xor eax, eax
jmp 0x140074dac
cmp dword [rsp + 0x740], 1
jne 0x1400749c9
mov rax, qword [rsp + 0x730]
mov qword [rsp + 0x70], rax
jmp 0x140074c09
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 0x140074a2e
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x140074a10
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140074a1e
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 0x1400749ea
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2e0]
call fcn.140003a99
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x60], rax
jne 0x140074a86
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x208
jae 0x140074a6d
jmp 0x140074a72
call fcn.140006c94
xor eax, eax
mov rcx, qword [rsp + 0x88]
mov word [rsp + rcx + 0x2e0], ax
jmp 0x140074acb
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 0x140074ab4
jmp 0x140074ab9
call fcn.140006c94
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 0x140074b2c
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2e0]
cmp eax, 0x5c
je 0x140074b2c
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x2e0]
test eax, eax
je 0x140074b22
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x2e0]
cmp eax, 0x3a
je 0x140074b2c
mov dword [rsp + 0x6c], 0
jmp 0x140074b34
mov dword [rsp + 0x6c], 1
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x46], al
movzx eax, byte [rsp + 0x46]
test eax, eax
je 0x140074b79
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.140004f66
jmp 0x140074bcf
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.140004f66
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 0x140074c1b
mov eax, 0x200
jmp 0x140074dac
mov rax, qword [rsp + 0x720]
mov rdx, qword [rax + 0x240]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.140006c80
mov rax, qword [rsp + 0x720]
cmp qword [rax + 0x248], 0
jne 0x140074c75
mov ecx, 0x4000
call fcn.1400047b9
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 0x140074d4e
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.1400022e8
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffff96
jne 0x140074cca
mov dword [rsp + 0x40], 0x1000
jmp 0x140074d4e
cmp dword [rsp + 0x48], 0
jge 0x140074cdb
mov dword [rsp + 0x40], 0x5000000
jmp 0x140074d4e
cmp dword [rsp + 0x48], 0
jle 0x140074d2d
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 0x140074d2d
mov dword [rsp + 0x40], 0x400
jmp 0x140074d4e
movzx eax, byte [rsp + 0x47]
test eax, eax
je 0x140074d38
jmp 0x140074d4e
cmp dword [rsp + 0x48], 0
jne 0x140074d49
mov dword [rsp + 0x40], 0x5000000
jmp 0x140074d4e
jmp 0x140074c7d
cmp dword [rsp + 0x40], 0
jne 0x140074d78
lea r9, [rsp + 0x2d0]
lea r8, [rsp + 0x2c0]
lea rdx, [rsp + 0x2c8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [rsp + 0x740], 1
je 0x140074d8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x720]
mov rcx, qword [rax]
call fcn.1400083aa
cmp dword [rsp + 0x40], 0
je 0x140074daa
mov eax, dword [rsp + 0x40]
jmp 0x140074dac
xor eax, eax
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.140004de0
add rsp, 0x718
ret