Function at 0x40e160
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47af73
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0x4c]
call fcn.00418580
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00418580
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
call fcn.0040eb50
test eax, eax
jne 0x40e1f1
mov ecx, dword [ebp - 0x9c]
call fcn.0040ebe0
test eax, eax
jne 0x40e1f1
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004186d0
mov eax, dword [ebp - 0x58]
jmp 0x40e3c8
push 0
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.00426520
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa4]
call fcn.00418800
push eax
lea ecx, [ebp - 0x30]
call fcn.00418b10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004186d0
push str.cabinet.dll
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x30]
call fcn.00419230
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xac]
call fcn.00418800
push eax
lea ecx, [ebp - 0x4c]
call fcn.00418b10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.004186d0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea edx, [ebp - 0x4c]
push edx
call fcn.00419080
mov dword [ebp - 0xb0], eax
call fcn.0041dec0
add esp, 0x1c
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 1
jne 0x40e2e7
mov dword [ebp - 0x90], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004186d0
mov eax, dword [ebp - 0x90]
jmp 0x40e3c8
push 0x4831cc
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x50], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x4c]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e37b
mov dword [ebp - 0x94], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004186d0
mov eax, dword [ebp - 0x94]
jmp 0x40e3c8
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x98], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004186d0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret