Function at 0x14001f9d0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, r9
mov edi, edx
mov r13, rcx
mov qword [rbp - 0x20], rcx
jmp 0x14001fa06
mov eax, r12d
add r14, rax
test edi, edi
je 0x14001fc7f
cmp byte [r13 + 0x3c], 0
mov ecx, dword [r13 + 0x38]
je 0x14001fa50
mov rdx, r14
mov r8d, edi
call fcn.140047a00
cmp eax, 0xffffffff
je 0x14001fca2
mov r12d, eax
test eax, eax
js 0x14001fc95
sub edi, r12d
jge 0x14001fa00
jmp 0x14001fc95
call fcn.140048388
cmp rax, 0xfffffffffffffffe
je 0x14001fcd4
mov qword [rbp - 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x14001fcc0
mov rax, qword [r13 + 0x98]
mov qword [rbp - 0x30], rax
mov r12, qword [r13 + 0x90]
mov r15d, dword [r13 + 0x88]
mov ecx, 0x50
call fcn.1400217e0
mov qword [rax + 4], 0
mov qword [rax + 0xc], 0
mov qword [rax + 0x14], 0
mov qword [rax + 0x1c], 0
mov qword [rax + 0x24], 0
mov qword [rax + 0x2c], 0
mov qword [rax + 0x34], 0
mov qword [rax + 0x3c], 0
mov qword [rax + 0x44], 0
mov dword [rax + 0x4c], 0
mov qword [rbp - 0x10], rax
mov dword [rax], 0x70
call fcn.140019380
mov rcx, rax
call fcn.1400199d0
mov rax, qword [rax + 0x28]
mov rdx, r14
mov r14, qword [rbp - 0x10]
mov qword [r14 + 8], rax
mov dword [r14 + 0x10], 1
mov rbx, r14
add rbx, 0x28
mov qword [rsp + 0x20], rbx
mov rsi, qword [rbp - 0x18]
mov rcx, rsi
mov r13, rdx
mov r8d, edi
lea r9, [rbp - 0x28]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x14001fb8b
mov r12d, dword [rbp - 0x28]
mov byte [r14 + 0x48], 1
mov rcx, r14
mov rdx, rsi
call fcn.140019b00
mov r14, r13
mov r13, qword [rbp - 0x20]
test edi, edi
js 0x14001fc95
cmp edi, r12d
jb 0x14001fc95
mov edi, edi
mov eax, r12d
sub rdi, rax
mov rax, rdi
movabs rdx, 0x1ffffffff
and rax, rdx
movsxd rcx, edi
and rcx, rdx
cmp rax, rcx
je 0x14001fa00
jmp 0x14001fc90
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6c
jle 0x14001fc08
cmp eax, 0x6d
mov r14, r13
je 0x14001fc2d
cmp eax, 0x3e5
mov r13, qword [rbp - 0x20]
jne 0x14001fdc9
mov ecx, r15d
mov rdx, r12
mov r8, qword [rbp - 0x30]
call fcn.14001fea0
mov rsi, qword [rbp - 0x10]
mov ecx, dword [rsi + 0x10]
lea eax, [rcx - 1]
cmp eax, 2
jae 0x14001fd76
mov r15, qword [rbp - 0x18]
mov rcx, r15
mov rdx, rbx
lea r8, [rbp - 0x24]
xor r9d, r9d
call sub.KERNEL32.dll_GetOverlappedResult
test eax, eax
je 0x14001fc46
mov r12d, dword [rbp - 0x24]
mov rcx, rsi
mov rdx, r15
call fcn.140019b00
test edi, edi
jns 0x14001fb56
jmp 0x14001fc95
cmp eax, 0x26
jne 0x14001fcfc
mov r14, r13
xor r12d, r12d
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
call fcn.140019b00
mov r13, qword [rbp - 0x20]
jmp 0x14001fb4e
xor r12d, r12d
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
call fcn.140019b00
mov r13, qword [rbp - 0x20]
jmp 0x14001fb4e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x26
je 0x14001fc6c
cmp eax, 0x6d
jne 0x14001fddf
xor r12d, r12d
mov rcx, rsi
mov rdx, r15
call fcn.140019b00
jmp 0x14001fb4e
xor r12d, r12d
mov rcx, rsi
mov rdx, r15
call fcn.140019b00
jmp 0x14001fb4e
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140003510
call fcn.140005390
mov rcx, rax
call fcn.1400053f0
call fcn.140018e30
cmp eax, 9
jne 0x14001fce8
lea rcx, [0x140060f50]
call fcn.140018f00
mov rcx, rax
call fcn.140018f70
lea rcx, [0x140060fa0]
call fcn.140019080
mov rcx, rax
call fcn.140007460
lea rcx, [0x140060fc0]
call fcn.1400073f0
mov rcx, rax
call fcn.140007460
lea rcx, [0x140060f80]
call fcn.140018fc0
mov rcx, rax
call fcn.140018f70
cmp eax, 5
jne 0x14001fdc9
lea rcx, [0x140061150]
lea rdx, [0x140061170]
call fcn.1400146a0
mov rsi, rax
mov ecx, 0x40
call fcn.1400217e0
mov qword [rax + 4], 0
mov qword [rax + 0xc], 0
mov qword [rax + 0x14], 0
mov qword [rax + 0x1c], 0
mov qword [rax + 0x24], 0
mov qword [rax + 0x2c], 0
mov qword [rax + 0x34], 0
mov dword [rax + 0x3c], 0
mov dword [rax], 0x34
mov qword [rax + 8], rsi
mov rcx, rax
call fcn.140018f70
call fcn.140019140
mov rsi, rax
mov ecx, 0x30
call fcn.1400217e0
mov qword [rax + 4], 0
mov qword [rax + 0xc], 0
mov qword [rax + 0x14], 0
mov qword [rax + 0x1c], 0
mov qword [rax + 0x24], 0
mov dword [rax + 0x2c], 0
mov dword [rax], 0x3f
mov qword [rax + 8], rsi
mov rcx, rax
call fcn.1400054c0
lea rcx, [0x140060ff0]
mov edx, eax
call fcn.140019c70
mov rcx, rax
call fcn.140018f70
cmp eax, 0x3e4
jne 0x14001fe57
lea rcx, [0x140060ff0]
lea rdx, [0x140061310]
call fcn.1400146a0
mov rsi, rax
mov ecx, 0x40
call fcn.1400217e0
mov qword [rax + 4], 0
mov qword [rax + 0xc], 0
mov qword [rax + 0x14], 0
mov qword [rax + 0x1c], 0
mov qword [rax + 0x24], 0
mov qword [rax + 0x2c], 0
mov qword [rax + 0x34], 0
mov dword [rax + 0x3c], 0
mov dword [rax], 0x2d
mov qword [rax + 8], rsi
mov rcx, rax
call fcn.14001b350
lea rcx, [0x140061330]
mov edx, eax
call fcn.140019c70
mov rcx, rax
call fcn.140018f70
int3