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

Disassembly:
push 0x7c
mov eax, 0x413507
call fcn.00411e9a
xor edi, edi
cmp dword [ecx + 0xdc], 0xd
je 0x40d9c3
lea eax, [ebp - 0x24]
push eax
push dword [ecx + 0x13c]
add ecx, 8
call fcn.00406477
mov ecx, eax
call fcn.00404a02
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.00401bbc
add eax, 0x10
lea ecx, [ebp - 0x20]
mov dword [esi], eax
call fcn.00402de2
pop ecx
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
jne 0x40d6d8
lea ecx, [eax - 0x10]
jmp 0x40d9b7
push 0x416790
lea ecx, [ebp - 0x10]
call fcn.00403875
push str.action
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040dd00
mov esi, 0x41679c
lea ecx, [ebp - 0x10]
push esi
call fcn.0040dd00
push str.uploadCrashDump
lea ecx, [ebp - 0x10]
call fcn.0040dd00
push 0x414d3c
lea ecx, [ebp - 0x10]
call fcn.00403794
push 0x416790
lea ecx, [ebp - 0x10]
call fcn.0040dd00
push str.crashdir
lea ecx, [ebp - 0x10]
call fcn.0040dd00
push esi
lea ecx, [ebp - 0x10]
call fcn.0040dd00
mov esi, 0x4167bc
lea ecx, [ebp - 0x10]
push esi
call fcn.00403794
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00403b50
push esi
lea ecx, [ebp - 0x10]
call fcn.00403794
push 0x4167c0
lea ecx, [ebp - 0x1c]
call fcn.004038c4
push 0x414d3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00403794
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push dword [eax - 0xc]
push eax
call fcn.00403b50
lea ecx, [ebp - 0x18]
call fcn.00402828
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
jne 0x40d7d2
call fcn.00401582
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
jmp 0x40d9b7
call fcn.00401bbc
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x414bd8
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x14]
call fcn.00403794
push 0x4167c0
lea ecx, [ebp - 0x14]
call fcn.00403794
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d8a0
push edi
lea ecx, [ebp - 0x18]
call fcn.00401a9c
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x40d82b
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 0x40d9cb
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x40d9cb
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.00403827
push esi
lea ecx, [ebp - 0x14]
call fcn.00403794
push 0x4167c0
lea ecx, [ebp - 0x14]
call fcn.00403794
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d8a0
lea ecx, [esi - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40d7ac
call fcn.0040a65e
test eax, eax
jne 0x40d919
push edi
lea ecx, [ebp - 0x14]
call fcn.00401a9c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
test eax, eax
je 0x40d90e
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.00401257
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 0x40d90a
cmp esi, 0xffffffff
je 0x40d90a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x40d919
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
jmp 0x40d890
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.00401a9c
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401a9c
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d90e
cmp dword [ebp - 0x38], 0
je 0x40d971
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0
je 0x40d980
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.00401582
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401582
mov ecx, ebx
call fcn.00401582
mov eax, edi
call fcn.00411e68
ret
push 0x80070057
call fcn.004013a6
int3