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

Disassembly:
push 0x7c
mov eax, 0x413735
call fcn.00411e05
xor edi, edi
cmp dword [ecx + 0xdc], 0xd
je 0x40d903
lea eax, [ebp - 0x24]
push eax
push dword [ecx + 0x13c]
add ecx, 8
call fcn.004063fc
mov ecx, eax
call fcn.00404984
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x24]
push ecx
add ebx, 0xfffffff0
mov esi, esp
mov ecx, ebx
mov dword [ebp - 0x2c], esi
call fcn.00401b9c
add eax, 0x10
lea ecx, [ebp - 0x20]
mov dword [esi], eax
call fcn.00402e41
pop ecx
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
jne 0x40d618
lea ecx, [eax - 0x10]
jmp 0x40d8f7
push 0x416790
lea ecx, [ebp - 0x10]
call fcn.00403896
push str.action
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040dc40
mov esi, 0x41679c
lea ecx, [ebp - 0x10]
push esi
call fcn.0040dc40
push str.uploadCrashDump
lea ecx, [ebp - 0x10]
call fcn.0040dc40
push 0x414d3c
lea ecx, [ebp - 0x10]
call fcn.004037b5
push 0x416790
lea ecx, [ebp - 0x10]
call fcn.0040dc40
push str.crashdir
lea ecx, [ebp - 0x10]
call fcn.0040dc40
push esi
lea ecx, [ebp - 0x10]
call fcn.0040dc40
mov esi, 0x4167bc
lea ecx, [ebp - 0x10]
push esi
call fcn.004037b5
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00403b71
push esi
lea ecx, [ebp - 0x10]
call fcn.004037b5
push 0x4167c0
lea ecx, [ebp - 0x1c]
call fcn.004038e5
push 0x414d3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004037b5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push dword [eax - 0xc]
push eax
call fcn.00403b71
lea ecx, [ebp - 0x18]
call fcn.00402887
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
jne 0x40d712
call fcn.00401572
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401572
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401572
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
jmp 0x40d8f7
call fcn.00401b9c
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x414bd8
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x14]
call fcn.004037b5
push 0x4167c0
lea ecx, [ebp - 0x14]
call fcn.004037b5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d7e0
push edi
lea ecx, [ebp - 0x18]
call fcn.00401a7c
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x40d76b
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov edx, eax
pop ecx
pop ecx
test edx, edx
js 0x40d90b
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x40d90b
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403848
push esi
lea ecx, [ebp - 0x14]
call fcn.004037b5
push 0x4167c0
lea ecx, [ebp - 0x14]
call fcn.004037b5
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d7e0
lea ecx, [esi - 0x10]
call fcn.00401572
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40d6ec
call fcn.0040a59e
test eax, eax
jne 0x40d859
push edi
lea ecx, [ebp - 0x14]
call fcn.00401a7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
test eax, eax
je 0x40d84e
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
mov edx, esi
call fcn.00401247
pop ecx
pop ecx
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
mov dword [ebp - 0x2c], ecx
test esi, esi
je 0x40d84a
cmp esi, 0xffffffff
je 0x40d84a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x40d859
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
jmp 0x40d7d0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x88]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x88], esi
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call fcn.00401a7c
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401a7c
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d84e
cmp dword [ebp - 0x38], 0
je 0x40d8b1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0
je 0x40d8c0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
xor eax, eax
lea ecx, [ecx - 0x10]
lea edi, [eax + 1]
call fcn.00401572
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401572
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401572
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401572
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401572
mov ecx, ebx
call fcn.00401572
mov eax, edi
call fcn.00411dce
ret
push 0x80070057
call fcn.00401396
int3