Function at 0x10006470
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.10006880
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x100064a1
mov dword [ebp - 0x3c], 0
jmp 0x100064d6
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.10006420
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 0x10006596
mov edx, 1
test edx, edx
je 0x100064fc
jmp 0x1000655e
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10006511
mov dword [ebp - 0x44], 0
jmp 0x10006546
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.10006420
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
push 0x1013ddb0
push 0
push 0x100
call fcn.10018300
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10006573
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x1000658b
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 0x10006731
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 0x1000662e
mov edx, 1
test edx, edx
je 0x100065bc
jmp 0x100065f6
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xffff
test eax, eax
jne 0x100065d4
mov dword [ebp - 0x50], 0x1013dd84
jmp 0x100065db
mov dword [ebp - 0x50], 0x1013dd58
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.10018300
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1000660b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
jmp 0x10006623
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 0x1000672f
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 0x1000669c
mov ecx, 1
test ecx, ecx
je 0x10006650
jmp 0x10006664
push 0x1013dd3c
push 0
push 0x100
call fcn.10018300
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10006679
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
jmp 0x10006691
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 0x1000672d
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 0x100066f6
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.10006740
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.100068b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x10006728
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
jmp 0x10006733
jmp 0x10006718
jmp 0x10006718
jmp 0x10006718
lea esp, [ebp - 0x5c]
mov esp, ebp
pop ebp
ret 0x10