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

Disassembly:
push 0x7c
mov eax, 0x42f3b7
call fcn.0042c6c5
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0xdc], 0xd
je 0x40de7c
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x14c]
lea ecx, [ebx + 8]
call fcn.00406908
mov ecx, eax
call fcn.00404fac
push ecx
mov dword [ebp - 4], edi
mov esi, esp
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.00401ccd
add eax, 0x10
lea ecx, [ebp - 0x24]
mov dword [esi], eax
call fcn.00402fec
pop ecx
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], edi
jne 0x40db55
lea ecx, [eax - 0x10]
jmp 0x40de6f
push 0x438248
lea ecx, [ebp - 0x10]
call fcn.00403e2e
push str.action
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040e1ba
mov esi, 0x438254
lea ecx, [ebp - 0x10]
push esi
call fcn.0040e1ba
push str.uploadCrashDump
lea ecx, [ebp - 0x10]
call fcn.0040e1ba
push 0x43679c
lea ecx, [ebp - 0x10]
call fcn.00403da5
push 0x438248
lea ecx, [ebp - 0x10]
call fcn.0040e1ba
push str.crashdir
lea ecx, [ebp - 0x10]
call fcn.0040e1ba
push esi
lea ecx, [ebp - 0x10]
call fcn.0040e1ba
mov esi, 0x438274
lea ecx, [ebp - 0x10]
push esi
call fcn.00403da5
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00404149
push esi
lea ecx, [ebp - 0x10]
call fcn.00403da5
push 0x438278
lea ecx, [ebp - 0x1c]
call fcn.00403e7d
add ebx, 0xf8
mov byte [ebp - 4], 3
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x40dc0c
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00403de0
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401ccd
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0x43679c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00403da5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push dword [eax - 0xc]
push eax
call fcn.00404149
lea ecx, [ebp - 0x18]
call fcn.0040299d
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
jne 0x40dc86
call fcn.00401592
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
jmp 0x40de6f
call fcn.00401ccd
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x436638
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x14]
call fcn.00403da5
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00404149
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40dd56
push edi
lea ecx, [ebp - 0x18]
call fcn.00401bad
push 0x5c
push eax
call fcn.00414947
pop ecx
pop ecx
test eax, eax
je 0x40dce0
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
push eax
call fcn.00416be6
mov edx, eax
pop ecx
pop ecx
test edx, edx
js 0x40de84
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x40de84
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.00403de0
push esi
lea ecx, [ebp - 0x14]
call fcn.00403da5
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00404149
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40dd56
lea ecx, [esi - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
jmp 0x40dc55
call fcn.0040ab1a
test eax, eax
jne 0x40ddc6
push edi
lea ecx, [ebp - 0x14]
call fcn.00401bad
mov ebx, eax
mov dword [ebp - 0x30], edi
test ebx, ebx
je 0x40ddbe
push edi
push edi
push 3
push edi
push 7
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push ecx
cmove esi, eax
lea eax, [ebp - 0x30]
push eax
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0040126a
add esp, 0xc
mov ebx, edi
test eax, eax
push 1
pop eax
cmovne ebx, eax
test esi, esi
je 0x40ddba
cmp esi, 0xffffffff
je 0x40ddba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40ddc6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
jmp 0x40dd46
push 0x44
pop esi
push esi
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00414d30
add esp, 0xc
mov dword [ebp - 0x88], esi
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call fcn.00401bad
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401bad
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ddbe
cmp dword [ebp - 0x3c], 0
je 0x40de1e
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 0
je 0x40de2d
push dword [ebp - 0x40]
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.00401592
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401592
mov ecx, dword [ebp - 0x28]
call fcn.00401592
mov eax, edi
call fcn.0042c693
ret
push 0x80070057
call fcn.004013b9
int3