Function at 0x1013529
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0xa
push dword [ebp + 8]
push dword [0x103337c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x101373e
push eax
push dword [0x103337c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
je 0x101373e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push 0x208
lea eax, [ebx + 0x86]
mov dword [ebp - 8], eax
call fcn.01005994
mov edx, eax
test edx, edx
mov dword [0x1030130], edx
jne 0x1013593
push esi
jmp 0x1013738
mov esi, 0x80
xor eax, eax
mov ecx, esi
lea edi, [edx + 8]
push 0xfffffffffffffffa
rep stosd dword es:[edi], eax
pop edx
lea ecx, [ebx + 6]
sub edx, ebx
movsx edi, byte [ecx]
cmp edi, eax
jle 0x10135b2
mov eax, edi
inc ecx
lea edi, [edx + ecx]
cmp edi, esi
jl 0x10135a9
movsx ecx, word [ebx + 4]
imul eax, ecx
add eax, 4
push eax
call fcn.01005994
test eax, eax
mov dword [ebp - 0x14], eax
je 0x1013723
movsx eax, word [ebx]
mov ecx, dword [0x1030130]
and dword [ebp - 4], 0
mov dword [ebp + 8], 8
mov dword [ecx], eax
mov ecx, dword [0x1030130]
movsx eax, word [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + ebx + 6], 0
lea edi, [eax + ebx + 6]
mov dword [ebp - 0x1c], edi
je 0x10136e1
push 0x25
call fcn.01005994
mov edx, dword [0x1030130]
mov ecx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, dword [0x1030130]
mov eax, dword [eax + ecx]
test eax, eax
je 0x1013717
movsx ecx, word [ebx + 4]
push 0
push ecx
movsx ecx, byte [edi]
push ecx
push eax
call fcn.01004bb8
test eax, eax
jne 0x10136f7
movsx eax, word [ebx + 4]
movsx ecx, byte [edi]
imul eax, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
inc eax
and dword [ebp - 0x10], 0
mov ecx, eax
lea edi, [edx + 3]
mov edx, ecx
add dword [ebp - 8], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, byte [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [0x1030130]
mov eax, dword [eax + ecx]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
neg edx
dec ecx
mov eax, dword [eax + 8]
imul ecx, edx
sub eax, ecx
cmp word [ebx + 4], 0
mov dword [ebp - 0x18], eax
jle 0x10136dc
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x18]
and ecx, 3
inc dword [ebp - 0x10]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
add eax, edx
add dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
movsx ecx, word [ebx + 4]
cmp dword [ebp - 0x10], ecx
jl 0x10136ac
mov esi, 0x80
add dword [ebp + 8], 4
inc dword [ebp - 4]
cmp dword [ebp + 8], 0x208
jl 0x10135f8
jmp 0x1013717
mov eax, dword [ebp - 4]
lea edi, [eax*4 + 8]
mov eax, dword [0x1030130]
push dword [eax + edi]
call fcn.01005a0e
mov eax, dword [0x1030130]
and dword [eax + edi], 0
cmp dword [ebp - 4], esi
je 0x1013735
call fcn.010134e9
jmp 0x1013735
push dword [0x1030130]
call fcn.01005a0e
and dword [0x1030130], 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
leave
ret 4