Function at 0x4018b0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b9e6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [esp + 0x48]
push ecx
xor edi, edi
push edi
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
mov dword [esp + 0x14], vtable.CRes.0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
lea eax, [esp + 0x44]
mov dword [esp + 0x260], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401957
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x44]
push ecx
mov edi, eax
lea ebx, [esp + 0x1c]
call fcn.004011b0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401985
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [esp + 0x18]
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [esp + 0x30], edi
test edi, edi
je 0x4019b6
push 0x40e284
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
jne 0x401a0e
mov dword [esp + 0x260], 0xffffffff
test edi, edi
je 0x4019cc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4019e8
mov eax, dword [esp + 0x20]
mov ecx, esi
call fcn.00401500
push esi
call fcn.004027e4
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 0x401a04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80000002
jmp 0x401b41
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x401a31
lea ecx, [esp + 0x14]
call fcn.00401080
mov eax, 0x80000003
jmp 0x401b41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
call fcn.004010e0
lea edi, [esp + 0x10]
mov byte [esp + 0x260], 1
call fcn.00402280
push 0xe
mov edx, edi
push edx
call fcn.00401d90
mov eax, dword [esp + 0x10]
push 0x40e290
push eax
call fcn.00402af1
mov esi, eax
add esp, 8
test esi, esi
jne 0x401ac2
mov byte [esp + 0x260], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00401080
mov eax, 0x80000005
jmp 0x401b41
mov ecx, dword [esp + 0x3c]
push esi
push ecx
push 1
push ebx
call fcn.00402c5f
push esi
call fcn.00402cd9
add esp, 0x14
push esi
mov edi, eax
call fcn.00402d6e
mov byte [esp + 0x264], 0
mov eax, dword [esp + 0x14]
add esp, 4
add eax, 0xfffffff0
test edi, edi
je 0x401b1d
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401b10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00401080
mov eax, edi
jmp 0x401b41
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00401080
xor eax, eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00402618
mov esp, ebp
pop ebp
ret