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

Disassembly:
sub esp, 0x410
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x40c], 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
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00422580
lea ecx, [esp + 0x2c]
push ecx
push str._bExtract_SYS__Extract__s_n
push edi
call fcn.004a05b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x20
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea edx, [esp + 0x30]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4a3518
lea eax, [esp + 0x18]
push eax
push str._bExtract_SYS__File__s_does_already_exist_n
push edi
call fcn.004a05b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4a378b
mov esi, dword [esp + 0x420]
push esi
call fcn.004a31d0
add esp, 4
test eax, eax
jne 0x4a3542
push esi
push str._bExtract_SYS__Wrong_res_ID___X_n
push edi
call fcn.004a05b0
add esp, 0xc
xor eax, eax
jmp 0x4a378b
cmp byte [edi + 0x810], 0
lea eax, [edi + 0x810]
je 0x4a35a0
push eax
lea ecx, [esp + 0x21c]
push 0x200
push ecx
call fcn.004c5045
add esp, 0xc
push ebp
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
test ebp, ebp
jne 0x4a35c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x220]
push ecx
push str._bExtract_SYS__GetModuleHandle_on__s_failed__error_d_n
push edi
call fcn.004a05b0
add esp, 0x10
xor eax, eax
jmp 0x4a378a
push 0x200
lea edx, [esp + 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a3567
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4a378b
movzx edx, si
push 0xa
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4a35f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__FindResource_failed__error_d_n
push edi
call fcn.004a05b0
add esp, 0xc
xor eax, eax
jmp 0x4a378a
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a361d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__LoadResource_failed__error_d_n
push edi
call fcn.004a05b0
add esp, 0xc
xor eax, eax
jmp 0x4a378a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4a3656
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__Size_of_resousrce__0__error_d_n
push edi
call fcn.004a05b0
add esp, 0xc
xor eax, eax
jmp 0x4a378a
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3752
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push ecx
push str._bExtract_SYS__Unable_to_create_the_file__s__error_d__1__n
push edi
call fcn.004a05b0
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3752
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1c]
push ecx
push 0x200
call ebp
push 0x4e2f88
lea edx, [esp + 0x20]
push 0x200
push edx
call fcn.00422660
lea eax, [edi + 0xa10]
push eax
lea eax, [esp + 0x2c]
push 0x200
push eax
call fcn.00422660
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3740
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push edx
push str._bExtract_SYS__Unable_to_create_the_file__s__error_d__2__n
push edi
call fcn.004a05b0
add esp, 0x10
xor eax, eax
jmp 0x4a378a
lea eax, [edi + 0x610]
push eax
push 0x200
call ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x4a3781
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._bExtract_SYS__WriteFile_failed__error_d__2__n
push edi
call fcn.004a05b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebp
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2fd1
add esp, 0x410
ret 4