Function at 0x1015dd1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1019fbfc]
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 0x1015ddf5
push 0x100
lea eax, [ebp - 0x204]
push eax
movzx eax, word [esi]
add eax, edx
push eax
push dword [0x101a0f0c]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1015e059
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 [0x101a0f0c]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, eax
test ecx, ecx
je 0x1015e059
mov eax, dword [ebp - 0x210]
add ebx, 2
add eax, ecx
add ebx, eax
cmp dword [esi - 4], 1
jne 0x1015dddc
add ebx, 4
add ebx, eax
mov edx, dword [ebp - 0x208]
inc edx
mov dword [ebp - 0x208], edx
cmp edx, dword [ebp - 0x214]
jl 0x1015dd67
cmp dword [esi - 4], 1
jne 0x1015de48
movzx eax, word [esi]
push 0xa
push eax
push dword [0x101a0f0c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1015e059
push eax
push dword [0x101a0f0c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1015e059
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1015e059
movzx eax, word [eax]
test al, 1
jne 0x1015e059
shr eax, 1
add ebx, eax
add esi, 8
cmp esi, 0x101a0474
jl 0x1015dd47
mov ecx, dword [ebp - 0x20c]
lea esi, [ebx + ebx]
mov edx, esi
call fcn.1015be09
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 0x1015dfc8
movzx eax, word [edi]
push esi
push ebx
add eax, ecx
push eax
push dword [0x101a0f0c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1015e03f
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 [0x101a0f0c]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1015e03f
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 0x1015dfaf
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 [0x101a0f0c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1015e03f
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 [0x101a0f0c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1015e03f
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 0x1015deb9
cmp dword [edi - 4], 1
jne 0x1015e02e
movzx eax, word [edi]
push 0xa
push eax
push dword [0x101a0f0c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1015e03f
push eax
push dword [0x101a0f0c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1015e03f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x1015e03f
movzx eax, word [ecx]
mov dword [ebp - 0x218], eax
test al, 1
jne 0x1015e03f
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, 0x101a0474
jl 0x1015de99
jmp 0x1015e059
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.101637b0
leave
ret