Function at 0x40cf30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4317f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x460], ecx
call fcn.00402b10
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
call fcn.00403280
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x460]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d420
lea ecx, [ebp - 0x448]
call fcn.00403280
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40cfab
mov dword [ebp - 0x464], 0
jmp 0x40d02d
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 0x40cffd
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00409060
add esp, 4
movzx edx, al
test edx, edx
je 0x40cffd
mov eax, dword [ebp - 0x38]
add eax, 3
and eax, 0xfffffffc
call fcn.00424090
mov dword [ebp - 0x468], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x46c], eax
jmp 0x40d00f
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00409560
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.00405f20
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40d06f
mov dword [ebp - 0x458], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.0040fdd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004095d0
mov eax, dword [ebp - 0x458]
jmp 0x40d1e0
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 0x40d096
call fcn.00406f70
mov dword [ebp - 0x450], eax
jmp 0x40d1a0
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 0x40d0c7
call fcn.00406f70
mov dword [ebp - 0x450], eax
jmp 0x40d1a0
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 0x40d0f7
call fcn.00406f70
mov dword [ebp - 0x450], eax
jmp 0x40d1a0
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.0040fd90
jmp 0x40d132
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x448]
call fcn.00403c80
test eax, eax
jne 0x40d154
mov dword [ebp - 0x450], 0x8007000e
jmp 0x40d1a0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x448]
call fcn.00403c80
push eax
call fcn.004240d0
add esp, 0xc
lea ecx, [ebp - 0x448]
call fcn.00403c80
mov ecx, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x448]
call fcn.00403c80
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d450
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x20], 0
je 0x40d1b0
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.0040fdd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004095d0
mov eax, dword [ebp - 0x45c]
lea esp, [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10