Function at 0x10017950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.10017d90
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x10017981
mov dword [ebp - 0x3c], 0
jmp 0x100179b6
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.1001d3b0
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.10017900
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 0x10017a80
mov edx, 1
test edx, edx
je 0x100179e3
mov dword [ebp - 0x44], 0
jmp 0x10017a48
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100179f8
mov dword [ebp - 0x48], 0
jmp 0x10017a2d
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.1001d3b0
mov dword [ebp - 0x4c], esp
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10017900
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
push str.Failed_to_LoadLibrary_on__s_n
push 0
push pe_nt_image_headers32
call fcn.10017c50
add esp, 0x10
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10017a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
jmp 0x10017a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x14], ecx
jmp 0x10017c33
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 0x10017b26
mov edx, 1
test edx, edx
je 0x10017ab1
mov dword [ebp - 0x54], 0
jmp 0x10017aee
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xffff
test eax, eax
jne 0x10017ac9
mov dword [ebp - 0x58], str.Failed_to_FindResource_on_ID:_d_TYPE:_s_n
jmp 0x10017ad0
mov dword [ebp - 0x58], 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 - 0x58]
push eax
push 0
push pe_nt_image_headers32
call fcn.10017c50
add esp, 0x14
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10017b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
jmp 0x10017b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x14], ecx
jmp 0x10017c31
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 0x10017b9e
mov ecx, 1
test ecx, ecx
je 0x10017b4f
mov dword [ebp - 0x60], 0
jmp 0x10017b66
push str.Failed_to_LoadResource__n
push 0
push pe_nt_image_headers32
call fcn.10017c50
add esp, 0xc
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10017b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
jmp 0x10017b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x14], edx
jmp 0x10017c2f
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 0x10017bf8
mov eax, dword [ebp - 0x18]
add eax, 4
and al, 0xfc
call fcn.1001d3b0
mov dword [ebp - 0x68], esp
mov edx, dword [ebp - 0x68]
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.1001c3d0
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.10017c40
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.10017dc0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x10017c2a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
jmp 0x10017c35
jmp 0x10017c1a
jmp 0x10017c1a
jmp 0x10017c1a
lea esp, [ebp - 0x68]
mov esp, ebp
pop ebp
ret 0x10