Function at 0x406088
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x406090
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov edx, dword [0x403acc]
call fcn.004023a8
xor eax, eax
push ebp
push 0x406390
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x4063a0
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40635f
push ebx
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40635f
push ebx
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x40635f
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.00403088
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x403a3c]
call fcn.00402c04
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x403a60]
call fcn.00402c04
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x403a84]
call fcn.00402c04
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x403aa8]
call fcn.00402c04
add esp, 4
add dword [ebp - 8], 4
imul ecx, dword [ebp - 0x24], 0x32
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00403088
mov eax, dword [ebp - 0x24]
imul edx, eax, 0x32
add dword [ebp - 8], edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00403088
mov eax, dword [ebp - 0x24]
mov edx, eax
add dword [ebp - 8], edx
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00403088
mov eax, dword [ebp - 0x24]
mov edx, eax
shl edx, 8
sub edx, eax
add dword [ebp - 8], edx
imul ecx, eax, 0x32
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00403088
imul eax, dword [ebp - 0x24], 0x32
add dword [ebp - 8], eax
mov eax, edi
call fcn.00403098
push ebx
call sub.kernel32.dll_FreeResource
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x40635f
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
push 0xa
lea edx, [ebp - 0x2c]
lea eax, [esi + 1]
call fcn.00403cf0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4063b0
call fcn.00401f0c
mov eax, dword [ebp - 0x28]
call fcn.004020b8
push eax
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 4], eax
push ebx
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x406355
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.00401d28
mov eax, esi
shl eax, 5
mov edx, dword [ebp - 0x18]
cmp byte [edx + eax*8], 0
jne 0x4062b6
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00401440
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00403e6c
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
imul edx, esi, 0x33
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + edx]
call fcn.00401e9c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0xc]
pop edx
call fcn.00401f0c
jmp 0x4062fd
lea eax, [ebp - 0x3c]
mov edx, esi
shl edx, 5
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + edx*8]
call fcn.00401e9c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0xc]
call fcn.0040565c
push dword [ebp - 0xc]
push 0x4063bc
lea eax, [ebp - 0x40]
imul edx, esi, 0x33
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + edx]
call fcn.00401e9c
push dword [ebp - 0x40]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00401f80
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00405fc4
mov eax, dword [ebp - 0x1c]
cmp byte [eax + esi], 0
je 0x406348
lea eax, [ebp - 0x44]
imul edx, esi, 0x33
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + edx]
call fcn.00401e9c
mov eax, dword [ebp - 0x44]
call fcn.004020b8
push eax
push 0
push 1
mov eax, dword [ebp - 0xc]
call fcn.004020b8
mov ecx, eax
mov edx, 0x4063c0
xor eax, eax
call fcn.00404824
mov eax, edi
call fcn.00403098
push ebx
call sub.kernel32.dll_FreeResource
inc esi
dec dword [ebp - 0x10]
jne 0x406207
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406397
lea eax, [ebp - 0x44]
mov edx, 8
call fcn.00401d4c
lea eax, [ebp - 0x24]
mov edx, dword [0x403acc]
call fcn.0040246c
lea eax, [ebp - 0xc]
call fcn.00401d28
ret