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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47afc3
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 - 0x30]
call fcn.00418580
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00418580
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
call fcn.0040ebe0
test eax, eax
jne 0x40e462
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov eax, dword [ebp - 0x58]
jmp 0x40e639
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 - 0x48]
call fcn.00418b10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004186d0
push 0x4831e4
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x48]
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 - 0x30]
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 - 0x30]
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 0x40e558
mov dword [ebp - 0x90], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov eax, dword [ebp - 0x90]
jmp 0x40e639
push 0x4831e0
push 0x69
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 - 0x30]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x40e5ec
mov dword [ebp - 0x94], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov eax, dword [ebp - 0x94]
jmp 0x40e639
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 - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x98], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
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