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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bbf6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
xor edi, edi
push edi
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
mov dword [ebp - method.CRes.virtual_0], vtable.CRes.0
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x224], edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
jmp 0x401960
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401960
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
lea ebx, [ebp - 0x244]
call fcn.004011b0
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x401994
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x244]
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x22c], edi
test edi, edi
je 0x4019cb
push 0x40e214
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
jne 0x401a23
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4019dd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x240]
test esi, esi
je 0x4019fd
mov eax, dword [ebp - 0x23c]
mov ecx, esi
call fcn.00401500
push esi
call fcn.004029b4
add esp, 4
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80000002
jmp 0x401b69
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x401a4a
lea ecx, [ebp - 0x248]
call fcn.00401080
mov eax, 0x80000003
jmp 0x401b69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push edi
mov dword [ebp - 0x224], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
call fcn.004010e0
lea edi, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00402450
push 0xe
mov edx, edi
push edx
call fcn.00401f30
mov eax, dword [ebp - 0x220]
push 0x40e220
push eax
call fcn.00402cc1
mov esi, eax
add esp, 8
test esi, esi
jne 0x401ae6
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ad1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x248]
call fcn.00401080
mov eax, 0x80000005
jmp 0x401b69
mov ecx, dword [ebp - 0x24c]
push esi
push ecx
push 1
push ebx
call fcn.00402e2f
push esi
call fcn.00402ea9
add esp, 0x14
push esi
mov edi, eax
call fcn.00402f3e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add esp, 4
add eax, 0xfffffff0
test edi, edi
je 0x401b43
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x248]
call fcn.00401080
mov eax, edi
jmp 0x401b69
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x248]
call fcn.00401080
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004027e8
mov esp, ebp
pop ebp
ret