Function at 0x10006e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100321ed
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1006200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
movzx eax, dx
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10006ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100070ab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10006ebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100070ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10006ed2
lea edi, [eax + 6]
jmp 0x100070ab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x10006eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100070ab
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x80
cmovae eax, dword [ebp + 8]
push 0x40
push 0x8101
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001f32b
mov edi, eax
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x10007075
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10009e60
lea ecx, [ebp - 0x2c]
call fcn.10006870
add esp, 0x18
push 0x1005b8a8
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.10009d30
mov esi, eax
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10009e60
lea ecx, [ebp - 0x48]
call fcn.10006870
add esp, 0x18
mov ebx, eax
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x10006f75
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
mov edx, dword [ebx + 0x10]
jb 0x10006f80
mov ebx, dword [ebx]
cmp edx, eax
jne 0x10006fa8
test edx, edx
je 0x10006fa4
sub ebx, esi
nop word [eax + eax]
movzx ecx, word [ebx + esi]
movzx eax, word [esi]
cmp cx, ax
jne 0x10006fa8
add esi, 2
sub edx, 1
jne 0x10006f90
mov bl, 1
jmp 0x10006faa
xor bl, bl
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x10006fe4
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006fda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100070ff
push ecx
push edx
call fcn.1001629e
add esp, 8
mov ecx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, 8
jb 0x10007032
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007028
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100070ff
push ecx
push edx
call fcn.1001629e
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
test bl, bl
cmovne edi, eax
cmp ecx, 8
jb 0x100070ab
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007069
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007104
push ecx
push edx
call fcn.1001629e
add esp, 8
jmp 0x100070ab
push esi
push ebx
push eax
call fcn.1001e54c
add esp, 0xc
push dword [ebp - 0x14]
test eax, eax
jns 0x10007096
call fcn.1001dbfb
add esp, 4
mov edi, 0x21
jmp 0x100070ab
call fcn.1001dbfb
add esp, 4
test eax, eax
jns 0x100070a9
mov edi, 9
jmp 0x100070ab
xor edi, edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x100070e1
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100070d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007109
push ecx
push edx
call fcn.1001629e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015c58
mov esp, ebp
pop ebp
ret
call fcn.1001f5cf
call fcn.1001f5cf
call fcn.1001f5cf
int3