Function at 0x10001000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push 0xe
mov ebx, ecx
push edx
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10001284
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x10001284
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001284
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x10001284
movzx ecx, word [esi + 4]
lea eax, [esi + 6]
push edi
push ecx
push 4
mov dword [ebp - 0x14], eax
call fcn.10004320
movzx ecx, word [esi + 4]
push ecx
push 4
mov dword [ebp - 0xc], eax
call fcn.10004320
mov edi, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 8], edi
mov dword [eax], 6
xor eax, eax
mov dword [ebp - 0x10], eax
cmp cx, word [esi + 4]
jae 0x1000126a
jmp 0x100010a5
mov ebx, dword [ebp - 0x18]
movzx ecx, ax
mov dword [ebp - 0x1c], ecx
push 3
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2 + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10001151
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10001151
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001151
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x10001151
cmp dword [ebp + 8], 0
jne 0x10001131
cmp edi, 8
jb 0x10001131
cmp byte [ecx], 0x89
jne 0x10001131
cmp byte [ecx + 1], 0x50
jne 0x10001131
cmp byte [ecx + 2], 0x4e
jne 0x10001131
cmp byte [ecx + 3], 0x47
jne 0x10001131
cmp byte [ecx + 4], 0xd
jne 0x10001131
cmp byte [ecx + 5], 0xa
jne 0x10001131
cmp byte [ecx + 6], 0x1a
jne 0x10001131
cmp byte [ecx + 7], 0xa
je 0x10001151
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0x10]
add dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [edx + eax*4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edi
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x10001154
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x20]
movzx ebx, ax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp ax, word [esi + 4]
jb 0x100010a2
test bx, bx
je 0x10001267
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.10004346
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10001267
mov edx, dword [esi]
xor edi, edi
mov dword [eax], edx
xor esi, esi
mov word [eax + 4], bx
mov edx, ebx
add eax, 6
shl edx, 4
mov dword [ebp - 4], eax
add edx, 6
xor eax, eax
mov dword [ebp - 0x10], edx
cmp ax, bx
jae 0x1000124a
mov eax, ebx
mov dword [ebp - 0x28], eax
nop dword [eax]
mov eax, dword [ebp - 0xc]
movzx ecx, di
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10001238
mov eax, dword [ebp - 8]
mov ebx, dword [eax + ecx*4]
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x10001238
mov ebx, dword [ebp - 4]
lea eax, [ecx*8]
sub eax, ecx
movzx edx, si
mov ecx, dword [ebp - 0x14]
add edx, edx
movq xmm0, qword [ecx + eax*2]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 4]
movq qword [eax + edx*8], xmm0
mov eax, dword [ecx + 8]
mov dword [ebx + edx*8 + 8], eax
mov ax, word [ecx + 0xc]
mov ecx, ebx
mov ebx, dword [ebp - 0x20]
push ebx
push dword [ebp - 0x1c]
mov word [ecx + edx*8 + 0xc], ax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax + edx*8 + 0x12], ecx
mov dword [eax + edx*8 + 0xe], ebx
add eax, ecx
push eax
call fcn.10002c40
add esp, 0xc
add dword [ebp - 0x10], ebx
jmp 0x1000123e
add esi, 0xffff
inc esi
inc edi
cmp si, word [ebp - 0x28]
jb 0x100011c0
push dword [ebp - 0xc]
call fcn.1000432b
push dword [ebp - 8]
call fcn.1000432b
mov eax, dword [ebp - 0x18]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1000432b
push edi
call fcn.1000432b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret