Function at 0x1006a470
Capabilities:
Access peb ldr_data
Check os version
Get process heap flags
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081578
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008a8e8]
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 dword [ebp - 0x34], edx
mov edi, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
xor ebx, ebx
push 0x16c
push ebx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.msvcrt.dll_memset
mov eax, 0x82
mov dword [ebx + 0x138], 5
mov word [ebx + 0x30], ax
add esp, 0xc
mov word [ebx + 0x64], ax
mov word [ebx + 0x98], ax
mov word [ebx + 0xcc], ax
mov eax, 0xb
mov word [ebx + 0x100], ax
mov word [ebx + 0x134], ax
lea eax, [ebx + 0x138]
mov dword [ebp - 0x3c], eax
mov eax, 0x13
mov word [ebx + 0x168], ax
lea eax, [ebp - 0x20]
mov dword [ebx + 0x1c], 7
mov dword [ebx + 8], 0x28
mov dword [ebx + 0xc], 0x24
mov dword [ebx + 4], 0
mov dword [ebx + 0x50], 7
mov dword [ebx + 0x3c], 0x1c
mov dword [ebx + 0x40], 0x18
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x84], 7
mov dword [ebx + 0x70], 4
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0xb8], 7
mov dword [ebx + 0xa4], 0x10
mov dword [ebx + 0xa8], 0xc
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xec], 5
mov dword [ebx + 0xdc], 0x30
mov dword [ebx + 0xd4], 0x34
mov dword [ebx + 0xf8], 2
mov dword [ebx + 0x120], 5
mov dword [ebx + 0x110], 0x38
mov dword [ebx + 0x108], 0x3c
mov dword [ebx + 0x12c], 2
mov dword [ebx + 0x154], 5
mov dword [ebx + 0x144], 0x40
mov dword [ebx + 0x13c], 0x44
mov dword [ebx + 0x160], 4
mov esi, dword [edi]
push eax
push 0x10015a88
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x1008c268]
call esi
mov edi, eax
test edi, edi
js 0x1006a7e6
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x1008c268]
call esi
mov edi, eax
test edi, edi
js 0x1006a7e6
mov edi, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006a6de
mov edi, dword [ebp - 0x28]
lea ecx, [ebx + ebx*2]
shl ecx, 4
add edi, 0x14
mov dword [ebp - 0x2c], ecx
mov edx, dword [ecx + 0x100029d8]
mov dword [ebp - 0x38], edx
cmp edx, dword [edi - 4]
jne 0x1006a6c9
lea eax, [edi - 0x14]
mov esi, 0xc
lea edx, [ecx + 0x100029c8]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1006a6c0
add edx, 4
add eax, 4
sub esi, 4
jae 0x1006a697
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x100029dc]
cmp eax, dword [edi]
mov eax, dword [ebp - 0x18]
je 0x1006a6d5
mov edx, dword [ecx + 0x100029d8]
jmp 0x1006a6c9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
inc eax
add edi, 0x18
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jb 0x1006a684
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
cmp eax, ecx
jne 0x1006a722
cmp ebx, 1
jbe 0x1006a789
cmp ebx, 3
ja 0x1006a6ff
cmp ebx, 4
jae 0x1006a702
mov eax, dword [ebp + 0x18]
mov dword [eax + ebx*4], 0xffffffff
cmp ebx, 4
jne 0x1006a70d
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0x14]
inc ebx
cmp ebx, 6
jae 0x1006a799
mov edi, dword [ebp + 8]
jmp 0x1006a663
lea ecx, [ebx + ebx*2]
shl ecx, 4
add ecx, 0x100029c8
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jae 0x1006a766
imul esi, ebx, 0x34
mov ecx, 0xd
add esi, edi
mov edi, dword [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
cmp ebx, 3
ja 0x1006a776
cmp ebx, 4
jae 0x1006a776
mov ecx, dword [ebp + 0x18]
mov dword [ecx + ebx*4], eax
mov ecx, dword [ebp - 0x1c]
inc eax
add edx, 0x18
mov dword [ebp - 0x14], eax
add dword [ebp - 0x24], 0x34
mov dword [ebp - 0x30], edx
jmp 0x1006a710
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, 0x80004005
jmp 0x1006a7e6
cmp eax, 6
jae 0x1006a7ae
mov esi, dword [ebp - 0x3c]
mov ecx, 0xd
imul edi, eax, 0x34
add edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
push 0
push 0
mov esi, dword [eax]
push 0x100158e8
push dword [ebp - 0x34]
mov esi, dword [esi + 0x10]
mov ecx, esi
push ebx
push 0
push eax
call dword [0x1008c268]
call esi
push dword [ebp - 0x28]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1006a804
mov edx, dword [ecx]
push ecx
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x1008c268]
call esi
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.1007c0c0
mov esp, ebp
pop ebp
ret 0x18