Function at 0x406e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43149a
mov eax, dword fs:[0]
push eax
mov eax, 0x1010c
call fcn.004258f0
mov eax, dword [0x443740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [0x447140]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 3
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x43b8ec
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406bf0
lea eax, [ebp - 0x100c4]
mov dword [ebp - 0x10100], 0
mov dword [ebp - 0x100d0], eax
lea edi, [ebp - 0x100c4]
neg eax
mov dword [ebp - 0x100fc], 0
and eax, 3
mov dword [ebp - 0x100f0], 0
add eax, edi
mov dword [ebp - 0x100ec], 0
mov dword [ebp - 0x100cc], eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x100e8], 0
mov dword [ebp - 0x100e0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x100c8], eax
mov dword [ebp - 0x1010c], 0
mov dword [ebp - 0x10108], 0
mov dword [ebp - 0x10104], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0xa1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x407179
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10110], eax
test eax, eax
je 0x407179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x407179
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40715a
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x1010c]
call fcn.00407560
mov edi, dword [ebp - 0x1010c]
push esi
push ebx
push edi
call fcn.0041e040
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp - 0x10100]
lea ecx, [ebp - 0x1010c]
push eax
call fcn.00407480
test al, al
je 0x40715a
mov ecx, dword [ebp - 0x100e8]
test ecx, ecx
je 0x40715a
push str.Type
call fcn.004073a0
mov ebx, eax
test ebx, ebx
je 0x40715a
push 0x43b8fc
mov ecx, ebx
call fcn.00407410
mov ecx, 0x447a1c
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00406650
mov byte [ebp - 4], 5
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae edx, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10114], esp
call fcn.00411b30
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004061e0
mov byte [ebp - 4], 5
call fcn.004154f0
add esp, 0x30
test al, al
je 0x40713a
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40713a
jmp 0x407070
push 0x43b900
mov ecx, esi
call fcn.00407410
test eax, eax
je 0x40708f
mov eax, dword [eax + 4]
mov edi, 0x447a1c
test eax, eax
cmovne edi, eax
jmp 0x407091
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, 0x447a1c
test eax, eax
cmovne ecx, eax
test edi, edi
je 0x40712f
test ecx, ecx
je 0x40712f
push ecx
lea ecx, [ebp - 0x88]
call fcn.00406650
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00406650
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
call fcn.00411a50
mov edi, eax
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.00411a50
push edi
push eax
mov byte [ebp - 4], 0xa
call fcn.00407320
mov ecx, eax
call fcn.004043a0
lea ecx, [ebp - 0xa0]
call fcn.00406d60
lea ecx, [ebp - 0xb8]
call fcn.00406d60
lea ecx, [ebp - 0x70]
call fcn.004060d0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.004060d0
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x407070
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], 0x10
jb 0x40714f
push dword [ebp - 0x40]
call fcn.0041bbd5
add esp, 4
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
jne 0x406fe0
push dword [ebp - 0x10110]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1010c]
test eax, eax
je 0x407179
push eax
call fcn.0041bbd5
add esp, 4
lea ecx, [ebp - 0x100d0]
mov byte [ebp - 4], 2
call fcn.00407500
cmp dword [ebp - 0x14], 8
jb 0x407199
push dword [ebp - 0x28]
call fcn.0041bbd5
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4071be
push dword [ebp + 8]
call fcn.0041bbd5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bbda
mov esp, ebp
pop ebp
ret