Function at 0x406b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x440068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x441aa8]
push 0xe
push 0x84
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406b68
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x406b68
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x406b7e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x30]
shl eax, 5
add eax, 8
push eax
call fcn.00407090
mov esi, dword [ebp - 0x30]
xor ecx, ecx
movzx eax, word [edi + 4]
mov edx, 4
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415312
xor ebx, ebx
mov dword [ebp - 0x14], eax
add esp, 4
cmp dword [esi + 4], ebx
jbe 0x406cf9
lea ecx, [edi + 0x12]
mov dword [ebp - 0x18], ecx
lea edi, [esi + 0x1c]
nop
movzx eax, word [ecx]
push 3
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x406ce0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + ebx*4], eax
test eax, eax
je 0x406ce0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [edi - 4], eax
call fcn.00415312
add esp, 4
mov dword [edi - 8], eax
mov eax, dword [ebp - 0x14]
push dword [edi - 4]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [edi - 8]
call fcn.00416600
mov esi, dword [edi - 8]
add esp, 0xc
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [edi - 0x14], eax
mov eax, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [edi - 0x10], eax
movzx ecx, word [esi + 0xc]
movzx edx, word [esi + 0xe]
imul edx, ecx
mov dword [ebp - 0x20], eax
mov dword [edi - 0xc], edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x406c88
movzx eax, cx
jmp 0x406cb2
movzx eax, word [esi + 0xe]
sub eax, 1
je 0x406cad
sub eax, 3
je 0x406ca6
sub eax, 4
je 0x406c9f
xor eax, eax
jmp 0x406cb2
mov eax, 0x100
jmp 0x406cb2
mov eax, 0x10
jmp 0x406cb2
mov eax, 2
shl eax, 2
movzx edx, ax
add edx, dword [esi]
add edx, esi
mov dword [edi + 4], edx
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
imul ecx, eax
imul ecx, dword [esi + 4]
add ecx, 0x1f
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, dword [ebp - 0x20]
add ecx, edx
mov dword [edi + 8], ecx
mov eax, dword [ebp - 0x1c]
inc ebx
mov ecx, dword [ebp - 0x18]
add edi, 0x20
add ecx, 0xe
mov dword [ebp - 0x18], ecx
cmp ebx, dword [eax + 4]
jb 0x406bf0
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00406d90
test eax, eax
sete byte [ebp + 0x13]
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x406d28
lea esi, [ebx + 0x14]
push dword [esi]
call fcn.0041530d
inc edi
lea esi, [esi + 0x20]
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x406d15
push dword [ebp - 0x14]
call fcn.0041530d
add esp, 4
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x406d6c
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406d62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d83
push edx
push ecx
call fcn.004152ff
add esp, 8
mov al, byte [ebp + 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0041b091
int3