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

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xa10]
push eax
lea ecx, [edi + 0x610]
push ecx
push str._s_s
mov esi, 0x200
lea eax, [ebp + 0x194]
push esi
push eax
mov dword [ebp - 0x70], edi
call fcn.00404c23
lea eax, [ebp + 0x194]
push eax
push str._bExtract_SYS__Extract__s_n
push edi
call fcn.0048800f
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x20
xor eax, eax
push eax
mov ebx, 0x80
push ebx
push 3
push eax
push eax
push SysReAllocString
lea eax, [ebp + 0x194]
push eax
call edi
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x48a8f8
lea eax, [ebp + 0x194]
push eax
push str._bExtract_SYS__File__s_does_already_exist_n
push dword [ebp - 0x70]
call fcn.0048800f
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9399
add ebp, 0x398
leave
ret 4
push dword [ebp + 0x3a0]
call fcn.0048a5d6
pop ecx
test eax, eax
jne 0x48a922
push dword [ebp + 0x3a0]
push str._bExtract_SYS__Wrong_res_ID___X_n
push dword [ebp - 0x70]
call fcn.0048800f
add esp, 0xc
xor eax, eax
jmp 0x48a8de
mov eax, dword [ebp - 0x70]
add eax, 0x810
cmp byte [eax], 0
je 0x48a943
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.004aaf1c
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
jmp 0x48a945
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x48a96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6c]
push eax
push str._bExtract_SYS__GetModuleHandle_on__s_failed__error_d_n
push dword [ebp - 0x70]
call fcn.0048800f
add esp, 0x10
jmp 0x48a91e
movzx eax, word [ebp + 0x3a0]
push 0xa
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x48a99a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__FindResource_failed__error_d_n
jmp 0x48a913
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48a9b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__LoadResource_failed__error_d_n
jmp 0x48a913
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x78], eax
xor eax, eax
cmp dword [ebp - 0x78], eax
jne 0x48a9ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__Size_of_resousrce__0__error_d_n
jmp 0x48a913
push eax
push ebx
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp + 0x194]
push eax
call edi
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x48aad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x194]
push eax
push str._bExtract_SYS__Unable_to_create_the_file__s__error_d__1__n
push dword [ebp - 0x70]
call fcn.0048800f
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp + 0x194]
push eax
call edi
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x48aad2
lea eax, [ebp + 0x194]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x519990
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00404cb7
mov eax, dword [ebp - 0x70]
add eax, 0xa10
push eax
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00404cb7
add esp, 0x18
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp + 0x194]
push eax
call edi
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x48aac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x194]
push eax
push str._bExtract_SYS__Unable_to_create_the_file__s__error_d__2__n
jmp 0x48a962
mov eax, dword [ebp - 0x70]
add eax, 0x610
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x48a8d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__WriteFile_failed__error_d__2__n
push dword [ebp - 0x70]
call fcn.0048800f
add esp, 0xc
jmp 0x48a8d3