Function at 0x405ea0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1c
lea eax, [ebp - 0x24]
push eax
push fcn.00405ea0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [ebp - 0x20]
push 0x496100
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.jqjectx641.sys
push 0x496100
push 0x48bcfc
push 0x496100
call fcn.00410800
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
add esp, 0x10
push 0x48bd04
push 0x83
push esi
call ebx
mov edi, eax
test edi, edi
je 0x4060e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x48b98c
push 0x496100
mov dword [ebp - 0x48], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x405f67
push edi
push dword [ebp - 0x40]
push 1
push dword [ebp - 0x48]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
jne 0x405f67
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0
push 0x496100
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x4060e8
push 3
call fcn.00405d40
push 0
call fcn.00405d40
push 1
call fcn.00405d40
add esp, 0xc
push 0x48bd18
push 0x84
push esi
call ebx
mov edi, eax
test edi, edi
je 0x4060e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4060e8
test ebx, ebx
je 0x4060e8
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..CrashDumpUpload
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
test esi, esi
je 0x4060c0
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 0x39]
push eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x222401
push esi
call edi
push 0x32
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x494a4c
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406034
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push 0x494a4c
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x44]
push 0
push eax
push 1
lea eax, [ebp - 0x39]
push eax
push 0x32
lea eax, [ebp - 0x38]
push eax
push 0x222409
push esi
call edi
push 0
mov ebx, eax
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 0x39]
push eax
push 0x32
lea eax, [ebp - 0x48]
push eax
push 0x22240d
push esi
call edi
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 1
push eax
push 1
lea eax, [ebp - 0x39]
push eax
push 0x32
lea eax, [ebp - 0x40]
push eax
push 0x222415
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4c], 0
je 0x4060be
test ebx, ebx
jne 0x4060d2
push 0
push 0x48bd48
push 0x48bd54
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041caaf
mov esp, ebp
pop ebp
ret