Function at 0x40cab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417703
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x45c
mov eax, dword [0x41c20c]
mov dword [ebp - 0x40], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x460], ecx
call fcn.00402020
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
call fcn.00409980
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x460]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040cfb0
lea ecx, [ebp - 0x448]
call fcn.00409980
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40cb33
mov dword [ebp - 0x464], 0
jmp 0x40cbb5
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x400
jg 0x40cb85
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00408ae0
add esp, 4
movzx edx, al
test edx, edx
je 0x40cb85
mov eax, dword [ebp - 0x38]
add eax, 3
and eax, 0xfffffffc
call fcn.004117a0
mov dword [ebp - 0x468], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x46c], eax
jmp 0x40cb97
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00408fe0
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x46c]
push edx
call fcn.004058c0
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40cbf7
mov dword [ebp - 0x458], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.0040f9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409050
mov eax, dword [ebp - 0x458]
jmp 0x40cd68
push 2
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40cc1e
call fcn.00406930
mov dword [ebp - 0x450], eax
jmp 0x40cd28
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x40cc4f
call fcn.00406930
mov dword [ebp - 0x450], eax
jmp 0x40cd28
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
jne 0x40cc7f
call fcn.00406930
mov dword [ebp - 0x450], eax
jmp 0x40cd28
mov ecx, dword [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
lea ecx, [ebp - 0x448]
call fcn.0040f9c0
jmp 0x40ccba
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x448]
call fcn.00408500
test eax, eax
jne 0x40ccdc
mov dword [ebp - 0x450], 0x8007000e
jmp 0x40cd28
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x448]
call fcn.00408500
push eax
call fcn.00410fc0
add esp, 0xc
lea ecx, [ebp - 0x448]
call fcn.00408500
mov ecx, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x448]
call fcn.00408500
push eax
lea ecx, [ebp - 0x28]
call fcn.0040cfe0
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x20], 0
je 0x40cd38
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.0040f9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409050
mov eax, dword [ebp - 0x45c]
lea esp, [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x40]
call fcn.00410ceb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10