Function at 0x1016112b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101a4c2c]
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 0x10161201
push 0x100
lea eax, [ebp - 0x204]
push eax
movzx eax, word [esi]
add eax, edx
push eax
push dword [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x10161465
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 [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, eax
test ecx, ecx
je 0x10161465
mov eax, dword [ebp - 0x210]
add ebx, 2
add eax, ecx
add ebx, eax
cmp dword [esi - 4], 1
jne 0x101611e8
add ebx, 4
add ebx, eax
mov edx, dword [ebp - 0x208]
inc edx
mov dword [ebp - 0x208], edx
cmp edx, dword [ebp - 0x214]
jl 0x10161173
cmp dword [esi - 4], 1
jne 0x10161254
movzx eax, word [esi]
push 0xa
push eax
push dword [0x101a5fbc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10161465
push eax
push dword [0x101a5fbc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10161465
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10161465
movzx eax, word [eax]
test al, 1
jne 0x10161465
shr eax, 1
add ebx, eax
add esi, 8
cmp esi, 0x101a54a4
jl 0x10161153
mov ecx, dword [ebp - 0x20c]
lea esi, [ebx + ebx]
mov edx, esi
call fcn.1015f19e
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 0x101613d4
movzx eax, word [edi]
push esi
push ebx
add eax, ecx
push eax
push dword [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1016144b
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 [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1016144b
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 0x101613bb
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 [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1016144b
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 [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1016144b
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 0x101612c5
cmp dword [edi - 4], 1
jne 0x1016143a
movzx eax, word [edi]
push 0xa
push eax
push dword [0x101a5fbc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1016144b
push eax
push dword [0x101a5fbc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1016144b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x1016144b
movzx eax, word [ecx]
mov dword [ebp - 0x218], eax
test al, 1
jne 0x1016144b
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, 0x101a54a4
jl 0x101612a5
jmp 0x10161465
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.10166ce0
mov esp, ebp
pop ebp
ret