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

Disassembly:
push 0x7c
mov eax, 0x413775
call fcn.00411e45
xor edi, edi
cmp dword [ecx + 0xdc], 0xd
je 0x40d943
lea eax, [ebp - 0x24]
push eax
push dword [ecx + 0x13c]
add ecx, 8
call fcn.00406439
mov ecx, eax
call fcn.004049c4
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.00401bdc
add eax, 0x10
lea ecx, [ebp - 0x20]
mov dword [esi], eax
call fcn.00402e81
pop ecx
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
jne 0x40d658
lea ecx, [eax - 0x10]
jmp 0x40d937
push 0x4167a0
lea ecx, [ebp - 0x10]
call fcn.004038d6
push str.action
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040dc80
mov esi, 0x4167ac
lea ecx, [ebp - 0x10]
push esi
call fcn.0040dc80
push str.uploadCrashDump
lea ecx, [ebp - 0x10]
call fcn.0040dc80
push 0x414d4c
lea ecx, [ebp - 0x10]
call fcn.004037f5
push 0x4167a0
lea ecx, [ebp - 0x10]
call fcn.0040dc80
push str.crashdir
lea ecx, [ebp - 0x10]
call fcn.0040dc80
push esi
lea ecx, [ebp - 0x10]
call fcn.0040dc80
mov esi, 0x4167cc
lea ecx, [ebp - 0x10]
push esi
call fcn.004037f5
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00403bb1
push esi
lea ecx, [ebp - 0x10]
call fcn.004037f5
push 0x4167d0
lea ecx, [ebp - 0x1c]
call fcn.00403925
push 0x414d4c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004037f5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push dword [eax - 0xc]
push eax
call fcn.00403bb1
lea ecx, [ebp - 0x18]
call fcn.004028c7
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
jne 0x40d752
call fcn.004015b2
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
jmp 0x40d937
call fcn.00401bdc
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x414be8
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x14]
call fcn.004037f5
push 0x4167d0
lea ecx, [ebp - 0x14]
call fcn.004037f5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d820
push edi
lea ecx, [ebp - 0x18]
call fcn.00401abc
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x40d7ab
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 0x40d94b
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x40d94b
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.00403888
push esi
lea ecx, [ebp - 0x14]
call fcn.004037f5
push 0x4167d0
lea ecx, [ebp - 0x14]
call fcn.004037f5
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d820
lea ecx, [esi - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40d72c
call fcn.0040a5de
test eax, eax
jne 0x40d899
push edi
lea ecx, [ebp - 0x14]
call fcn.00401abc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
test eax, eax
je 0x40d88e
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.0040128f
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 0x40d88a
cmp esi, 0xffffffff
je 0x40d88a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x40d899
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
jmp 0x40d810
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.00401abc
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401abc
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d88e
cmp dword [ebp - 0x38], 0
je 0x40d8f1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0
je 0x40d900
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.004015b2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004015b2
mov ecx, ebx
call fcn.004015b2
mov eax, edi
call fcn.00411e0e
ret
push 0x80070057
call fcn.004013de
int3