Function at 0x14002e750
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r12
cmp dword [rcx + 0xac], 0xffffffff
jne 0x14002e833
mov rax, qword [0x140104018]
mov qword [rsp + 0x38], rax
lea rdi, [0x1400d1b00]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x14002e7db
movzx edx, di
lea rcx, [rsp + 0x38]
call fcn.140001ff0
jmp 0x14002e817
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002e817
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140001970
test eax, eax
je 0x14002e817
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x38]
call fcn.1400029b0
lea rcx, [r14 + 0x5d8]
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.140002330
jmp 0x14002f247
mov rax, qword [rcx + 0x38]
cmp dword [rax - 8], 0
jne 0x14002e8c7
mov rax, qword [0x140104018]
mov qword [rsp + 0x40], rax
lea rdi, [0x1400d1ba0]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x14002e86f
movzx edx, di
lea rcx, [rsp + 0x40]
call fcn.140001ff0
jmp 0x14002e8ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002e8ab
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140001970
test eax, eax
je 0x14002e8ab
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x40]
call fcn.1400029b0
lea rcx, [r14 + 0x5d8]
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x40]
call fcn.140002330
jmp 0x14002f247
mov edx, dword [rcx + 0x5c4]
add rcx, 8
call fcn.140009b60
mov rcx, rax
lea rdx, [rbp - 0x29]
call fcn.1400091d0
mov rcx, qword [rax]
mov edi, dword [rcx - 8]
mov rcx, qword [rbp - 0x29]
add rcx, 0xfffffffffffffff4
mov r15, 0xffffffffffffffff
cmp rcx, qword [0x140104010]
je 0x14002e919
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e919
mov rcx, qword [rbp - 0x29]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
test edi, edi
jne 0x14002eb16
mov rdi, qword [r14 + 0x38]
movsxd rbx, dword [rdi - 8]
mov rax, qword [0x140104018]
mov qword [rbp - 0x71], rax
test ebx, ebx
je 0x14002e963
mov edx, ebx
lea rcx, [rbp - 0x71]
call fcn.140001970
test eax, eax
je 0x14002e963
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rbp - 0x71]
call fcn.1400029b0
nop
movabs rax, 0x20002c003b
mov qword [rbp + 0x1f], rax
mov qword [rbp - 9], r12
lea r8, [rbp - 9]
lea rdx, [rbp + 0x1f]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14002e9ae
cmp word [rax], 0
je 0x14002e9ae
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.1400058f0
nop
mov dword [rsp + 0x20], 1
mov rbx, qword [rsp + 0x30]
jmp 0x14002e9d7
mov rsi, qword [r14 + 0x38]
cmp dword [rsi - 0xc], 0
jl 0x14002ea78
mov qword [rsp + 0x30], rsi
lock inc dword [rsi - 0xc]
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x20], 2
lea rdi, [r14 + 0x650]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.14004f5b0
nop
mov eax, dword [rsp + 0x20]
test al, 2
je 0x14002ea16
and dword [rsp + 0x20], 0xfffffffd
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002ea16
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002ea16
call fcn.1400bf5e4
nop
mov eax, dword [rsp + 0x20]
test al, 1
je 0x14002ea4e
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rbp - 0x21]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002ea4e
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002ea4e
mov rcx, qword [rbp - 0x21]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
nop
mov rcx, qword [rbp - 0x71]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002eb70
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002eb70
jmp 0x14002eb6b
mov rbx, qword [0x140104018]
mov qword [rsp + 0x30], rbx
test rsi, rsi
jne 0x14002ea8e
mov r13d, r12d
jmp 0x14002ea9a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x14002eaa9
cmp r13d, dword [rbx - 4]
jle 0x14002eae9
cmp rcx, qword [0x140104010]
je 0x14002eacf
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002eac3
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x30], rax
mov edx, r13d
lea rcx, [rsp + 0x30]
call fcn.140001970
test eax, eax
je 0x14002e9c5
mov rbx, qword [rsp + 0x30]
movsxd rax, r13d
lea rdi, [rax + rax]
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, rsi
mov rcx, rbx
call fcn.1400029b0
mov dword [rbx - 8], r13d
mov word [rdi + rbx], r12w
jmp 0x14002e9ca
mov edx, dword [r14 + 0x5c4]
lea rcx, [r14 + 8]
call fcn.140009b60
mov rcx, rax
lea rdx, [rbp - 0x19]
call fcn.1400091d0
nop
lea rdi, [r14 + 0x650]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.14004f5b0
nop
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002eb70
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002eb70
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rdx, qword [r14 + 0x38]
mov rcx, rdi
call fcn.14004b280
mov rdx, qword [r14 + 0x40]
mov rcx, rdi
call fcn.14004f630
mov rdx, qword [r14 + 0x48]
cmp dword [rdx - 8], 0
jne 0x14002ebd7
lea rdx, [rbp - 0x11]
mov rcx, r14
call fcn.14002a0d0
nop
mov rdx, qword [rax]
mov rcx, rdi
call fcn.14004f640
nop
mov rcx, qword [rbp - 0x11]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002ebdf
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002ebdf
mov rcx, qword [rbp - 0x11]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
jmp 0x14002ebdf
mov rcx, rdi
call fcn.14004f640
mov rdx, qword [r14 + 0x7f0]
mov rcx, rdi
call fcn.14004b160
mov rax, qword [0x140104018]
mov qword [rbp - 0x31], rax
mov rdx, qword [r14 + 0x7f0]
cmp dword [rdx - 0xc], 0
jl 0x14002ec10
mov qword [rbp - 0x69], rdx
lock inc dword [rdx - 0xc]
jmp 0x14002ec1d
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x69]
call fcn.140006470
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x69]
mov rcx, r14
call fcn.140021e70
mov rdi, qword [r14 + 0x7f0]
cmp dword [rdi - 0xc], 0
jl 0x14002ed5c
mov qword [rsp + 0x28], rdi
lock inc dword [rdi - 0xc]
mov rsi, qword [rsp + 0x28]
lea rbx, [rsi - 0xc]
cmp dword [rbx], 1
jle 0x14002ecb6
cmp rbx, qword [0x140104010]
je 0x14002ec7e
mov eax, r15d
lock xadd dword [rbx], eax
sub eax, 1
jg 0x14002ec72
mov rcx, rbx
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x28], rax
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x28]
call fcn.140001970
mov rsi, qword [rsp + 0x28]
test eax, eax
je 0x14002ecb6
mov eax, dword [rbx + 4]
inc eax
movsxd r9, eax
add r9, r9
lea r8, [rbx + 0xc]
mov eax, dword [rsi - 4]
inc eax
movsxd rdx, eax
add rdx, rdx
mov rcx, rsi
call fcn.1400029b0
mov rcx, rsi
movsxd rax, dword [rsi - 8]
lea rbx, [rsi + rax*2]
mov edi, VarDateFromDisp
cmp rsi, rbx
jae 0x14002ece7
nop dword [rax + rax]
cmp word [rcx], 0x2f
jne 0x14002ecd9
mov word [rcx], di
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
cmp rax, rbx
jb 0x14002ecd0
mov edx, edi
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x14002ee6a
sub rax, rsi
sar rax, 1
test eax, eax
js 0x14002ee6a
mov ecx, dword [rsi - 8]
mov r13d, r12d
add eax, 1
cmovns r13d, eax
mov r8d, r12d
sub ecx, eax
cmovns r8d, ecx
mov edx, dword [rsi - 8]
lea eax, [r8 + r13]
mov ecx, edx
sub ecx, r13d
cmp eax, edx
cmovle ecx, r8d
mov edi, r12d
cmp r13d, edx
cmovle edi, ecx
mov rbx, qword [0x140104018]
mov qword [rsp + 0x48], rbx
or dword [rsp + 0x20], 8
test edi, edi
jne 0x14002edfa
mov qword [rsp + 0x48], rbx
jmp 0x14002ee2d
mov rsi, qword [0x140104018]
mov qword [rsp + 0x28], rsi
test rdi, rdi
jne 0x14002ed72
mov r13d, r12d
jmp 0x14002ed7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
lea rcx, [rsi - 0xc]
cmp dword [rcx], 1
jg 0x14002ed8d
cmp r13d, dword [rsi - 4]
jle 0x14002edcd
cmp rcx, qword [0x140104010]
je 0x14002edb3
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002eda7
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x28], rax
mov edx, r13d
lea rcx, [rsp + 0x28]
call fcn.140001970
test eax, eax
je 0x14002ec47
mov rsi, qword [rsp + 0x28]
movsxd rax, r13d
lea rbx, [rax + rax]
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rbx
mov r8, rdi
mov rcx, rsi
call fcn.1400029b0
mov dword [rsi - 8], r13d
mov word [rbx + rsi], r12w
jmp 0x14002ec4c
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140001970
mov rbx, qword [rsp + 0x48]
test eax, eax
je 0x14002ee2d
movsxd r9, edi
add r9, r9
movsxd rax, r13d
lea r8, [rsi + rax*2]
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
mov rcx, rbx
call fcn.1400029b0
and dword [rsp + 0x20], 0xfffffff7
or dword [rsp + 0x20], 4
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400063d0
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002ee65
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002ee65
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x28]
lea rcx, [0x1400d1020]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
test eax, eax
je 0x14002efab
lea rdi, [rsi - 0xc]
cmp dword [rdi], 1
jg 0x14002eef7
movsxd rcx, dword [rsi - 8]
mov edx, dword [rsi - 4]
lea eax, [rcx + r12]
cmp eax, edx
jg 0x14002eef7
mov r8, r12
lea eax, [rdx + 1]
movsxd rdx, eax
add rdx, rdx
lea r9, [rsi + rcx*2]
add r8, r8
je 0x14002eee0
test r9, r9
jne 0x14002eec5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14002f2bd
mov rcx, r9
cmp rdx, r8
jb 0x14002f2a7
lea rdx, [0x1400d1020]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsi - 8]
lea eax, [r12 + rcx]
mov dword [rsi - 8], eax
movsxd rcx, eax
xor r12d, r12d
mov word [rsi + rcx*2], r12w
jmp 0x14002efae
movsxd rbx, dword [rdi + 4]
lea r13d, [r12 + rbx]
cmp r13d, ebx
jl 0x14002efab
cmp r13d, r12d
jl 0x14002efab
test r13d, r13d
je 0x14002ef89
mov edx, r13d
lea rcx, [rsp + 0x28]
call fcn.140001970
test eax, eax
je 0x14002efa6
add rbx, rbx
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rbx
mov r8, rsi
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.1400029b0
mov r8, r12
lea eax, [r12 + 1]
movsxd rdx, eax
add rdx, rdx
lea rcx, [rbx + rsi]
add r8, r8
je 0x14002ef89
test rcx, rcx
jne 0x14002ef74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14002f2e4
cmp rdx, r8
jb 0x14002f2ce
lea rdx, [0x1400d1020]
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, qword [0x140104010]
je 0x14002efab
mov eax, r15d
lock xadd dword [rdi], eax
sub eax, 1
jg 0x14002efa6
mov rcx, rdi
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x28]
xor r12d, r12d
mov rax, qword [0x140104018]
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x41]
call fcn.1400523a0
nop
mov rbx, qword [0x140104018]
mov qword [rbp - 0x61], rbx
or dword [rsp + 0x20], 0x10
lea rcx, [0x1400cd944]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbp - 0x39], eax
mov rcx, qword [rbp - 0x41]
mov qword [rbp - 0x79], rcx
movsxd rdi, dword [rcx - 8]
lea r13d, [rax + rdi]
cmp r13d, edi
jl 0x14002f075
cmp r13d, eax
jl 0x14002f075
test r13d, r13d
je 0x14002f075
mov edx, r13d
lea rcx, [rbp - 0x61]
call fcn.140001970
mov rbx, qword [rbp - 0x61]
test eax, eax
je 0x14002f075
add rdi, rdi
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, qword [rbp - 0x79]
mov rcx, rbx
call fcn.1400029b0
movsxd rax, dword [rbp - 0x39]
mov r8, rax
inc eax
movsxd rdx, eax
add rdx, rdx
lea rcx, [rdi + rbx]
add r8, r8
je 0x14002f075
test rcx, rcx
jne 0x14002f060
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14002f296
cmp rdx, r8
jb 0x14002f280
lea rdx, [0x1400cd944]
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x49]
call fcn.140006a30
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002f0ab
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002f0a6
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x28]
mov qword [rbp - 0x59], r12
lea r8, [0x1400ccf90]
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
cmp qword [rbp - 0x59], 0
je 0x14002f120
xor edx, edx
lea rcx, [rbp - 0x31]
call fcn.140001c10
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140031120
mov rdx, r15
inc rdx
cmp byte [rax + rdx], 0
jne 0x14002f0e5
mov r9, qword [rbp - 0x59]
mov r8d, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, qword [rbp - 0x49]
lea rdi, [r14 + 0x650]
mov rcx, rdi
call fcn.14004b160
jmp 0x14002f127
lea rdi, [r14 + 0x650]
mov rdx, qword [r14 + 0x58]
cmp dword [rdx - 8], 0
je 0x14002f173
cmp dword [rdx - 0xc], 0
jl 0x14002f146
mov qword [rbp - 0x51], rdx
lock inc dword [rdx - 0xc]
mov rsi, qword [rsp + 0x28]
jmp 0x14002f15a
mov rax, qword [0x140104018]
mov qword [rbp - 0x51], rax
lea rcx, [rbp - 0x51]
call fcn.140006470
lea rbx, [r14 + 0x698]
mov r8d, dword [r14 + 0x60]
lea rdx, [rbp - 0x51]
mov rcx, rbx
call fcn.14004f5c0
jmp 0x14002f17a
lea rbx, [r14 + 0x698]
mov r8, qword [r14 + 0x70]
mov rdx, qword [r14 + 0x68]
mov rcx, rbx
call fcn.14004f570
lea r8, [r14 + 0x5d8]
mov rdx, rdi
mov rcx, rbx
call fcn.14004c690
test eax, eax
mov r12d, 0
sete r12b
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002f1d7
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002f1d2
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rbp - 0x41]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002f206
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002f201
mov rcx, qword [rbp - 0x41]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x28]
lea rcx, [rsi - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002f225
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002f225
call fcn.1400bf5e4
nop
mov rcx, qword [rbp - 0x31]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002f247
lock xadd dword [rcx], r15d
sub r15d, 1
jg 0x14002f247
call fcn.1400bf5e4
nop
lea rcx, [rbp - 1]
call fcn.1400018c0
mov eax, r12d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400bf680
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
nop
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
int3
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
int3