Function at 0x405b60
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 [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1c
lea eax, [ebp - 0x24]
push eax
push fcn.00405b60
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [ebp - 0x20]
push 0x41c4b0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.jqjectx641.sys
push 0x41c4b0
push 0x415bac
push 0x41c4b0
call fcn.0040fe50
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
add esp, 0x10
push 0x415bb4
push 0x83
push esi
call ebx
mov edi, eax
test edi, edi
je 0x405da8
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 0x41583c
push 0x41c4b0
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 0x405c27
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 0x405c27
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0
push 0x41c4b0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x405da8
push 3
call fcn.00405a00
push 0
call fcn.00405a00
push 1
call fcn.00405a00
add esp, 0xc
push 0x415bc8
push 0x84
push esi
call ebx
mov edi, eax
test edi, edi
je 0x405da8
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 0x405da8
test ebx, ebx
je 0x405da8
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 0x405d80
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, 0x41b61c
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405cf4
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push 0x41b61c
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 0x405d7e
test ebx, ebx
jne 0x405d92
push 0
push 0x415bf8
push 0x415c04
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.00411c65
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.00411c65
mov esp, ebp
pop ebp
ret