Function at 0x40cb30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be070
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405a00
cmp dword [ebp + 0x14], 0
jne 0x40cb7c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
call fcn.004704d0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x10]
push ecx
push str.HTML
call fcn.0049d802
add esp, 8
test eax, eax
jne 0x40cbcb
push 0x17
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
jmp 0x40cbe1
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40cc06
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x20]
call fcn.00418720
lea ecx, [ebp - 0x18]
call fcn.00417fc0
mov eax, dword [ebp - 0x30]
jmp 0x40cd60
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40cc46
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x20]
call fcn.00418720
lea ecx, [ebp - 0x18]
call fcn.00417fc0
mov eax, dword [ebp - 0x34]
jmp 0x40cd60
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40cc90
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x20]
call fcn.00418720
lea ecx, [ebp - 0x18]
call fcn.00417fc0
mov eax, dword [ebp - 0x38]
jmp 0x40cd60
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40ccd6
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x20]
call fcn.00418720
lea ecx, [ebp - 0x18]
call fcn.00417fc0
mov eax, dword [ebp - 0x3c]
jmp 0x40cd60
mov dword [ebp - 4], 0
push 0
push 0
push 0x80
push 2
push 1
push 0xc0000000
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
lea ecx, [ebp - 0x20]
call fcn.004186a0
test eax, eax
jl 0x40cd1d
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00418610
mov dword [ebp - 0x2c], 1
jmp 0x40cd2c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x20]
call fcn.00418720
lea ecx, [ebp - 0x18]
call fcn.00417fc0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10