Function at 0x10006460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.10006870
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x10006491
mov dword [ebp - 0x3c], 0
jmp 0x100064c6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add eax, 3
and al, 0xfc
call fcn.1001fdf0
mov dword [ebp - 0x40], esp
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.10006410
mov dword [ebp - 0x3c], eax
push 2
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10006586
mov edx, 1
test edx, edx
je 0x100064ec
jmp 0x1000654e
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10006501
mov dword [ebp - 0x44], 0
jmp 0x10006536
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add eax, 3
and al, 0xfc
call fcn.1001fdf0
mov dword [ebp - 0x48], esp
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.10006410
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
push str.Failed_to_LoadLibrary_on__s_n
push 0
push 0x100
call fcn.1001b340
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10006563
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x1000657b
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
jmp 0x10006721
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000661e
mov edx, 1
test edx, edx
je 0x100065ac
jmp 0x100065e6
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xffff
test eax, eax
jne 0x100065c4
mov dword [ebp - 0x50], str.Failed_to_FindResource_on_ID:_d_TYPE:_s_n
jmp 0x100065cb
mov dword [ebp - 0x50], str.Failed_to_FindResource_on_ID:_s_TYPE:_s_n
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0x100
call fcn.1001b340
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x100065fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
jmp 0x10006613
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x14], ecx
jmp 0x1000671f
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000668c
mov ecx, 1
test ecx, ecx
je 0x10006640
jmp 0x10006654
push str.Failed_to_LoadResource__n
push 0
push 0x100
call fcn.1001b340
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10006669
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
jmp 0x10006681
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x14], edx
jmp 0x1000671d
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100066e6
mov eax, dword [ebp - 0x18]
add eax, 4
and al, 0xfc
call fcn.1001fdf0
mov dword [ebp - 0x5c], esp
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.1001f8b0
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x18]
mov byte [eax], 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10006730
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.100068a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x10006718
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
jmp 0x10006723
jmp 0x10006708
jmp 0x10006708
jmp 0x10006708
lea esp, [ebp - 0x5c]
mov esp, ebp
pop ebp
ret 0x10