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

Disassembly:
sub esp, 0x410
mov eax, dword [0x4ca09c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push ebp
mov esi, ecx
push str.bExtract_SYS_
push esi
call fcn.00495a80
lea eax, [esi + 0x810]
push eax
lea ecx, [esi + 0x410]
push ecx
push str._s_s
lea eax, [esp + 0x30]
push 0x200
push eax
call fcn.004310e0
lea ecx, [esp + 0x38]
push ecx
push str.szDestName___s_n
push esi
call fcn.00495a80
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x2c
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea edx, [esp + 0x30]
push edx
call ebx
cmp eax, 0xffffffff
je 0x41ebe6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x41ee8e
push ebp
call fcn.0041e7b0
add esp, 4
test eax, eax
jne 0x41ec08
push 0x4a4b38
push esi
call fcn.00495a80
add esp, 8
xor eax, eax
jmp 0x41ee8e
cmp byte [esi + 0x610], 0
lea eax, [esi + 0x610]
je 0x41ec7c
push eax
lea eax, [esp + 0x21c]
push 0x200
push eax
call fcn.00481ba5
add esp, 0xc
push edi
lea eax, [esp + 0x21c]
push eax
push str.szHostName___s_n
push esi
call fcn.00495a80
add esp, 0xc
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x41ecb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x220]
push edx
push str.GetModuleHandle
push esi
call fcn.00495a80
add esp, 0x10
xor eax, eax
jmp 0x41ee8d
push 0x200
lea ecx, [esp + 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ec2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x21c]
push edx
push str.GetModuleFileName
push esi
call fcn.00495a80
add esp, 0x10
xor eax, eax
jmp 0x41ee8e
movzx eax, bp
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x41ece8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource
push esi
call fcn.00495a80
add esp, 0xc
xor eax, eax
jmp 0x41ee8d
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41ed10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a49d8
push esi
call fcn.00495a80
add esp, 0xc
xor eax, eax
jmp 0x41ee8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x41ed49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a49b0
push esi
call fcn.00495a80
add esp, 0xc
xor eax, eax
jmp 0x41ee8d
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ee55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push edx
push 0x4a4980
push esi
call fcn.00495a80
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ee55
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x1c]
push edx
push 0x200
call ebp
push 0x4a497c
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00430eb0
lea eax, [esi + 0x810]
push eax
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call fcn.00430eb0
lea edx, [esp + 0x34]
push edx
push str.Try_2_:_szDestName___s_n
push esi
call fcn.00495a80
add esp, 0x24
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ee43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x4a4ae4
push esi
call fcn.00495a80
add esp, 0x10
xor eax, eax
jmp 0x41ee8d
lea eax, [esi + 0x410]
push eax
push 0x200
call ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x41ee84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a4920
push esi
call fcn.00495a80
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
mov ecx, dword [esp + 0x418]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004811b7
add esp, 0x410
ret 4