Function at 0x1400124dc
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rbx, rcx
xor r13d, r13d
mov r12d, r13d
cmp dword [rcx + 0x128], 0xd
je 0x140012c5b
add rcx, 8
mov edx, dword [rbx + 0x1dc]
call fcn.140008978
mov rcx, qword [rax + 0x10]
sub rcx, 0x18
call fcn.140001f9c
add rax, 0x18
mov qword [rbp - 0x70], rax
lea r14, [rax - 0x18]
mov rcx, r14
call fcn.140001f9c
add rax, 0x18
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x78]
call fcn.140003704
nop
mov rax, qword [rsp + 0x78]
cmp dword [rax - 0x10], r13d
jne 0x1400125c2
lea rdx, [rax - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400125a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov eax, esi
lock xadd dword [r14 + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012c5b
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x140012c52
call fcn.140001690
mov rcx, rax
test rax, rax
je 0x140012c99
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdi, [0x14001e2c0]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140004a6c
test al, al
jne 0x14001260f
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140001e2c
nop
lea rdx, str.action
lea rcx, [rsp + 0x50]
call fcn.140013114
lea rdx, [0x14001e2cc]
lea rcx, [rsp + 0x50]
call fcn.140013114
lea rdx, str.uploadCrashDump
lea rcx, [rsp + 0x50]
call fcn.140013114
lea r15, [0x14001c618]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [r15 + rax*2], r13w
jne 0x140012650
mov r8d, eax
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140004ec0
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140013114
lea rdx, str.crashdir
lea rcx, [rsp + 0x50]
call fcn.140013114
lea rdx, [0x14001e2cc]
lea rcx, [rsp + 0x50]
call fcn.140013114
lea rdi, [0x14001e2ec]
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1400126a3
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140004ec0
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140004ec0
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1400126d3
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140004ec0
lea rdx, [0x14001e2f0]
lea rcx, [rsp + 0x70]
call fcn.140004930
nop
lea rdx, [rbx + 0x158]
mov rax, qword [rdx]
cmp dword [rax - 0x10], r13d
je 0x140012719
lea rcx, [rsp + 0x70]
call fcn.1400048ac
mov rcx, qword [rsp + 0x70]
add rcx, 0xffffffffffffffe8
call fcn.140001f9c
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rax, rsi
inc rax
cmp word [r15 + rax*2], r13w
jne 0x140012733
mov r8d, eax
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.140004ec0
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140004ec0
lea rcx, [rsp + 0x58]
call fcn.140002ea4
nop
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], r13d
jne 0x14001281f
lea rdx, [rax - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001279c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400127c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400127ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012811
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
jmp 0x140012583
lea rcx, [rax - 0x18]
call fcn.140001f9c
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdi, [0x14001c49c]
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14001283b
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140004ec0
mov rdx, qword [rsp + 0x70]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140004ec0
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, 1
cmp eax, 0xffffffff
jne 0x140012976
mov rcx, qword [rsp + 0x58]
mov edx, r15d
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
or eax, edx
jge 0x1400128a8
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140002044
mov rcx, qword [rsp + 0x58]
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400128bc
mov word [rax], r13w
mov rcx, qword [rsp + 0x58]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rcx, rax
test eax, eax
js 0x140012c8e
mov rax, qword [rsp + 0x58]
cmp ecx, dword [rax - 0xc]
jg 0x140012c8e
mov dword [rax - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rsp + 0x58]
mov word [rax + rcx*2], r13w
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.1400048ac
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140012906
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140004ec0
mov rdx, qword [rsp + 0x70]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140004ec0
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140012976
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012968
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
jmp 0x14001277e
mov dword [rbp + 0x20], 0x11c
mov qword [rbp + 0x24], 6
mov qword [rbp + 0x134], r13
mov qword [rbp + 0x2c], r13
mov word [rbp + 0x34], r13w
mov r8b, 3
mov edx, 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8, rax
mov edx, 0x33
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jg 0x1400129fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x47e
je 0x140012a98
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140012a1b
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140002044
mov rbx, qword [rsp + 0x60]
mov dword [rbp - 0x80], r13d
test rbx, rbx
je 0x140012b55
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, rsi
cmove rdi, r13
lea r9, [rbp - 0x80]
mov rdx, rdi
mov rcx, rbx
call fcn.14000133c
mov r15d, r13d
test eax, eax
mov eax, 1
cmovne r15d, eax
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140012a89
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x140012b55
mov r15d, 1
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x4c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x50], 0x68
mov rdi, qword [rsp + 0x68]
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
or eax, ecx
jge 0x140012ad1
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140002044
mov rdi, qword [rsp + 0x68]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140012aef
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140002044
mov rbx, qword [rsp + 0x60]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140012946
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140012b3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140012b4d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, r15d
jmp 0x140012946
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012b77
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012b9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012bc5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012bec
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012c13
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140012c3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
mov ecx, esi
lock xadd dword [r14 + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140012c5b
mov rcx, qword [r14]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
mov rdx, r14
call qword [0x14001b738]
mov eax, r12d
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400185a0
lea r11, [rsp + 0x250]
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 ecx, 0x80070057
call fcn.140001500
nop
mov ecx, 0x80004005
call fcn.140001500
int3