Function at 0x1017f3de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20c], ecx
mov edi, str.PxZx
inc ebx
mov esi, edi
movzx ecx, word [esi + 2]
xor edx, edx
movzx eax, word [esi]
sub ecx, eax
mov dword [ebp - 0x208], edx
inc ecx
mov dword [ebp - 0x214], ecx
test ecx, ecx
jle 0x1017f4b4
push 0x100
lea eax, [ebp - 0x204]
push eax
movzx eax, word [esi]
add eax, edx
push eax
push dword [0x101d6f40]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1017f718
mov edx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
movzx ecx, word [esi]
add edx, 0x14
push 0x100
push eax
add ecx, edx
push ecx
push dword [0x101d6f40]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, eax
test ecx, ecx
je 0x1017f718
mov eax, dword [ebp - 0x210]
add ebx, 2
add eax, ecx
add ebx, eax
cmp dword [esi - 4], 1
jne 0x1017f49b
add ebx, 4
add ebx, eax
mov edx, dword [ebp - 0x208]
inc edx
mov dword [ebp - 0x208], edx
cmp edx, dword [ebp - 0x214]
jl 0x1017f426
cmp dword [esi - 4], 1
jne 0x1017f507
movzx eax, word [esi]
push 0xa
push eax
push dword [0x101d6f40]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1017f718
push eax
push dword [0x101d6f40]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1017f718
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1017f718
movzx eax, word [eax]
test al, 1
jne 0x1017f718
shr eax, 1
add ebx, eax
add esi, 8
cmp esi, 0x101d6344
jl 0x1017f406
mov ecx, dword [ebp - 0x20c]
lea esi, [ebx + ebx]
mov edx, esi
call fcn.1017d4bf
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 0x35c]
mov ecx, dword [edx + 0x354]
mov ebx, dword [edx + 0x348]
add ebx, ecx
mov dword [eax + 0x24], ecx
mov eax, dword [edx + 0x35c]
mov dword [eax + 0x28], esi
lea eax, [esi + 3]
and eax, 0xfffffffc
add dword [edx + 0x354], eax
movzx edx, word [edi + 2]
xor ecx, ecx
movzx eax, word [edi]
sub edx, eax
mov dword [ebp - 0x208], ecx
inc edx
mov dword [ebp - 0x218], edx
test edx, edx
jle 0x1017f687
movzx eax, word [edi]
push esi
push ebx
add eax, ecx
push eax
push dword [0x101d6f40]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1017f6fe
lea ecx, [eax + eax]
add ebx, 2
push 0xfffffffffffffffe
pop eax
sub eax, ecx
mov dword [ebp - 0x214], ecx
add ebx, ecx
add esi, eax
mov ecx, dword [ebp - 0x208]
movzx eax, word [edi]
add ecx, 0x14
push esi
push ebx
add eax, ecx
push eax
push dword [0x101d6f40]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1017f6fe
lea ecx, [eax + eax]
add ebx, 2
push 0xfffffffffffffffe
pop eax
sub eax, ecx
add ebx, ecx
add esi, eax
cmp dword [edi - 4], 1
jne 0x1017f66e
push 0x40
pop eax
mov word [ebx], ax
sub esi, 2
movzx eax, word [edi]
add ebx, 2
add eax, dword [ebp - 0x208]
push esi
push ebx
push eax
push dword [0x101d6f40]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1017f6fe
add ebx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x208]
push 0x40
pop eax
mov word [ebx + 2], ax
add ecx, 0x14
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x214]
add ebx, 4
add esi, eax
movzx eax, word [edi]
push esi
push ebx
add eax, ecx
push eax
push dword [0x101d6f40]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1017f6fe
mov eax, dword [ebp - 0x210]
add ebx, 2
push 0xfffffffffffffffe
lea ecx, [eax + eax]
pop eax
sub eax, ecx
add ebx, ecx
add esi, eax
mov ecx, dword [ebp - 0x208]
inc ecx
mov dword [ebp - 0x208], ecx
cmp ecx, dword [ebp - 0x218]
jl 0x1017f578
cmp dword [edi - 4], 1
jne 0x1017f6ed
movzx eax, word [edi]
push 0xa
push eax
push dword [0x101d6f40]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1017f6fe
push eax
push dword [0x101d6f40]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1017f6fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x1017f6fe
movzx eax, word [ecx]
mov dword [ebp - 0x218], eax
test al, 1
jne 0x1017f6fe
push eax
lea eax, [ecx + 2]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x218]
add esp, 0xc
shr eax, 1
sub esi, dword [ebp - 0x218]
lea ebx, [ebx + eax*2]
add edi, 8
cmp edi, 0x101d6344
jl 0x1017f558
jmp 0x1017f718
mov ecx, dword [ebp - 0x20c]
mov eax, dword [ecx + 0x35c]
and dword [eax + 0x24], 0
mov eax, dword [ecx + 0x35c]
and dword [eax + 0x28], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret