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

Disassembly:
push 0x7c
mov eax, 0x414e8e
call fcn.0041380a
xor edi, edi
cmp dword [ecx + 0xdc], 0xd
je 0x40d7db
lea eax, [ebp - 0x24]
push eax
push dword [ecx + 0x13c]
add ecx, 8
call fcn.0040635a
mov ecx, eax
call fcn.00404a08
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.00401bcc
add eax, 0x10
lea ecx, [ebp - 0x20]
mov dword [esi], eax
call fcn.00402e50
pop ecx
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
jne 0x40d4f0
lea ecx, [eax - 0x10]
jmp 0x40d7cf
push 0x418788
lea ecx, [ebp - 0x10]
call fcn.004038e3
push str.action
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040db18
mov esi, 0x418794
lea ecx, [ebp - 0x10]
push esi
call fcn.0040db18
push str.uploadCrashDump
lea ecx, [ebp - 0x10]
call fcn.0040db18
push 0x416d6c
lea ecx, [ebp - 0x10]
call fcn.00403802
push 0x418788
lea ecx, [ebp - 0x10]
call fcn.0040db18
push str.crashdir
lea ecx, [ebp - 0x10]
call fcn.0040db18
push esi
lea ecx, [ebp - 0x10]
call fcn.0040db18
mov esi, 0x4187b4
lea ecx, [ebp - 0x10]
push esi
call fcn.00403802
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00403bbe
push esi
lea ecx, [ebp - 0x10]
call fcn.00403802
push 0x4187b8
lea ecx, [ebp - 0x1c]
call fcn.00403932
push 0x416d6c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00403802
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push dword [eax - 0xc]
push eax
call fcn.00403bbe
lea ecx, [ebp - 0x18]
call fcn.00402808
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
jne 0x40d5ea
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 0x40d7cf
call fcn.00401bcc
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x416c08
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x14]
call fcn.00403802
push 0x4187b8
lea ecx, [ebp - 0x14]
call fcn.00403802
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d6b8
push edi
lea ecx, [ebp - 0x18]
call fcn.00401aac
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x40d643
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 0x40d7e3
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x40d7e3
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.00403895
push esi
lea ecx, [ebp - 0x14]
call fcn.00403802
push 0x4187b8
lea ecx, [ebp - 0x14]
call fcn.00403802
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d6b8
lea ecx, [esi - 0x10]
call fcn.00401582
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40d5c4
call fcn.0040a53e
test eax, eax
jne 0x40d731
push edi
lea ecx, [ebp - 0x14]
call fcn.00401aac
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
test eax, eax
je 0x40d726
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 0x40d722
cmp esi, 0xffffffff
je 0x40d722
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x40d731
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
jmp 0x40d6a8
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.00401aac
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401aac
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d726
cmp dword [ebp - 0x38], 0
je 0x40d789
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0
je 0x40d798
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.004137d8
ret
push 0x80070057
call fcn.004013a6
int3