Function at 0x406370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43067a
mov eax, dword fs:[0]
push eax
mov eax, 0x1010c
call fcn.004243d0
mov eax, dword [0x442740]
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 esi, ecx
mov dword [ebp - 4], 0
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 0x43a51c
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406150
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 0xa2
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4066d9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10110], eax
test eax, eax
je 0x4066d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4066d9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4066ba
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x1010c]
call fcn.00406ac0
mov edi, dword [ebp - 0x1010c]
push esi
push ebx
push edi
call fcn.0041d270
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp - 0x10100]
lea ecx, [ebp - 0x1010c]
push eax
call fcn.004069e0
test al, al
je 0x4066ba
mov ecx, dword [ebp - 0x100e8]
test ecx, ecx
je 0x4066ba
push 0x43a524
call fcn.00406900
mov ebx, eax
test ebx, ebx
je 0x4066ba
lea esp, [esp]
push 0x43a52c
mov ecx, ebx
call fcn.00406970
mov ecx, 0x4469da
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405bb0
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.0040fd80
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.00405740
mov byte [ebp - 4], 5
call fcn.00414640
add esp, 0x30
test al, al
je 0x40669a
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40669a
jmp 0x4065d0
push 0x43a530
mov ecx, esi
call fcn.00406970
test eax, eax
je 0x4065ef
mov eax, dword [eax + 4]
mov edi, 0x4469da
test eax, eax
cmovne edi, eax
jmp 0x4065f1
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, 0x4469da
test eax, eax
cmovne ecx, eax
test edi, edi
je 0x40668f
test ecx, ecx
je 0x40668f
push ecx
lea ecx, [ebp - 0x88]
call fcn.00405bb0
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00405bb0
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
call fcn.0040fca0
mov edi, eax
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.0040fca0
push edi
push eax
mov byte [ebp - 4], 0xa
call fcn.00406880
mov ecx, eax
call fcn.00403a90
lea ecx, [ebp - 0xa0]
call fcn.004062c0
lea ecx, [ebp - 0xb8]
call fcn.004062c0
lea ecx, [ebp - 0x70]
call fcn.00405630
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00405630
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x4065d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], 0x10
jb 0x4066af
push dword [ebp - 0x40]
call fcn.0041ae15
add esp, 4
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
jne 0x406540
push dword [ebp - 0x10110]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1010c]
test eax, eax
je 0x4066d9
push eax
call fcn.0041ae15
add esp, 4
lea ecx, [ebp - 0x100d0]
mov byte [ebp - 4], 2
call fcn.00406a60
cmp dword [ebp - 0x14], 8
jb 0x4066f9
push dword [ebp - 0x28]
call fcn.0041ae15
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 0x40671e
push dword [ebp + 8]
call fcn.0041ae15
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.0041ae1a
mov esp, ebp
pop ebp
ret