Function at 0x10006400
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.10006820
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x10006431
mov dword [ebp - 0x3c], 0
jmp 0x10006466
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.1001fd70
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.100063b0
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 0x10006526
mov edx, 1
test edx, edx
je 0x1000648c
jmp 0x100064ee
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100064a1
mov dword [ebp - 0x44], 0
jmp 0x100064d6
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.1001fd70
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.100063b0
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.100066e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10006503
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x1000651b
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 0x100066c1
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 0x100065be
mov edx, 1
test edx, edx
je 0x1000654c
jmp 0x10006586
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xffff
test eax, eax
jne 0x10006564
mov dword [ebp - 0x50], str.Failed_to_FindResource_on_ID:_d_TYPE:_s_n
jmp 0x1000656b
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.100066e0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1000659b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
jmp 0x100065b3
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 0x100066bf
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 0x1000662c
mov ecx, 1
test ecx, ecx
je 0x100065e0
jmp 0x100065f4
push str.Failed_to_LoadResource__n
push 0
push 0x100
call fcn.100066e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10006609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
jmp 0x10006621
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 0x100066bd
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 0x10006686
mov eax, dword [ebp - 0x18]
add eax, 4
and al, 0xfc
call fcn.1001fd70
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.1001f830
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.100066d0
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.10006850
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x100066b8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
jmp 0x100066c3
jmp 0x100066a8
jmp 0x100066a8
jmp 0x100066a8
lea esp, [ebp - 0x5c]
mov esp, ebp
pop ebp
ret 0x10