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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x412014]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
push 0x1c
lea eax, [esp + 0x24]
push eax
push fcn.004025e0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [esp + 0x24]
push 0x4137c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.injectx641.sys
push 0x4137c0
push 0x40daf0
push 0x4137c0
call fcn.00408590
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
add esp, 0x10
push 0x40db08
push 0x83
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40282d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x40dad8
push 0x4137c0
mov dword [esp + 0x20], 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 0x4026b2
push edi
push dword [esp + 0x14]
push 1
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [esp + 0x10], eax
jne 0x4026b2
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0
push 0x4137c0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x40282d
push 3
call fcn.004022e0
add esp, 4
push 0
call fcn.004022e0
add esp, 4
push 1
call fcn.004022e0
add esp, 4
push 0x40daf8
push 0x84
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40282d
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 0x40282d
test ebx, ebx
je 0x40282d
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 0x402804
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x23]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
push 0x222401
push esi
call ebx
push 0x32
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, str.gameapp.exe
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402790
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push str.gameapp.exe
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push eax
push 1
lea eax, [esp + 0x23]
push eax
push 0x32
lea eax, [esp + 0x34]
push eax
push 0x222409
push esi
call ebx
push 0
mov edi, eax
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x23]
push eax
push 0x32
lea eax, [esp + 0x2c]
push eax
push 0x22240d
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x402802
test edi, edi
jne 0x402816
push 0
push 0x40db44
push 0x40db50
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040a775
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a775
mov esp, ebp
pop ebp
ret