Function at 0x100069b0
Capabilities:
Check os version
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1001a509
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10020040]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10020040]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xc4]
xor edi, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
mov esi, eax
and al, 0x40
xor ecx, ecx
shr esi, 0x18
cmp al, 0x40
sete cl
mov dword [esp + 0x94], edi
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ecx
cmp eax, edi
jbe 0x10006aa7
lea ebx, [eax - 1]
cmp eax, ebx
ja 0x10006a52
call fcn.1000e974
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xbc], 8
mov ecx, dword [esp + 0xa8]
jae 0x10006a6a
lea ecx, [esp + 0xa8]
cmp word [ecx + ebx*2], 0x5c
jne 0x10006aa7
cmp ebp, edi
jne 0x10006a7a
cmp eax, 1
jbe 0x10006aa7
lea edx, [esp + 0x58]
push edx
lea ebx, [esp + 0x54]
lea edi, [esp + 0xa8]
call fcn.10007fc0
call fcn.100081e0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x68]
push eax
mov eax, edi
call fcn.10007ee0
lea ecx, [esp + 0xa4]
push ecx
mov edi, 1
mov ebx, 0x1001cca4
call fcn.10008240
xor ebx, ebx
xor edx, edx
mov edi, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
mov byte [esp + 0x94], 1
cmp edi, 0xffffffff
jne 0x10006afc
push eax
push ebx
lea eax, [esp + 0xac]
lea ecx, [esp + 0x70]
call fcn.10002730
jmp 0x10006c1e
cmp edi, ebx
jne 0x10006b21
cmp dword [esp + 0xb8], 1
jne 0x10006b21
push 1
mov eax, 0x1001cca4
lea esi, [esp + 0x6c]
xor ebp, ebp
call fcn.10002fe0
jmp 0x10006c18
lea eax, [esp + 0xa4]
lea edx, [edi + 1]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x38]
call fcn.100024e0
mov ebx, 8
mov byte [esp + 0x94], 2
cmp dword [eax + 0x18], ebx
jb 0x10006b4f
mov eax, dword [eax + 4]
jmp 0x10006b52
add eax, 4
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10006b57
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x6c]
call fcn.10002fe0
mov byte [esp + 0x94], 1
cmp dword [esp + 0x4c], ebx
jb 0x10006b8b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1000e9ac
add esp, 4
test edi, edi
jne 0x10006b96
mov ecx, 0x1001cca4
jmp 0x10006bc8
lea edx, [esp + 0xa4]
push edx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x38]
call fcn.100024e0
mov byte [esp + 0x94], 3
mov dword [esp + 0x1c], 1
cmp dword [eax + 0x18], ebx
jb 0x10006bc5
mov ecx, dword [eax + 4]
jmp 0x10006bc8
lea ecx, [eax + 4]
mov eax, dword [esp + 0x20]
add eax, 0x20
push eax
xor eax, eax
mov edx, ebp
call fcn.10001a80
mov dword [esp + 0x94], 1
test byte [esp + 0x1c], 1
mov ebp, eax
je 0x10006c18
cmp dword [esp + 0x4c], 8
jb 0x10006c01
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1000e9ac
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x80], 8
mov ecx, dword [esp + 0x6c]
jae 0x10006c30
lea ecx, [esp + 0x6c]
mov edi, dword [esp + 0x20]
lea eax, [edi + 0x20]
push eax
xor eax, eax
mov edx, ebp
call fcn.10001a80
cmp eax, ebx
jne 0x10006d23
cmp ebp, ebx
jne 0x10006ca1
mov esi, 8
cmp dword [esp + 0x80], esi
jb 0x10006c68
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.1000e9ac
add esp, 4
xor edx, edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
cmp dword [esp + 0xbc], esi
jb 0x10006c97
mov eax, dword [esp + 0xa8]
push eax
call fcn.1000e9ac
add esp, 4
mov eax, 0xc000003a
jmp 0x10006f03
cmp esi, 2
je 0x10006ccf
cmp esi, 3
je 0x10006ccf
cmp esi, 5
je 0x10006ccf
lea esi, [esp + 0x68]
call fcn.10002000
lea esi, [esp + 0xa4]
call fcn.10002000
mov eax, 0xc0000034
jmp 0x10006f03
mov esi, 8
cmp dword [esp + 0x80], esi
jb 0x10006cea
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.1000e9ac
add esp, 4
xor edx, edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
cmp dword [esp + 0xbc], esi
jb 0x10006d19
mov eax, dword [esp + 0xa8]
push eax
call fcn.1000e9ac
add esp, 4
mov eax, 0xc00000a2
jmp 0x10006f03
cmp esi, 2
jne 0x10006d86
mov ecx, dword [esp + 0x24]
mov esi, 8
mov dword [ecx], 4
cmp dword [esp + 0x80], esi
jb 0x10006d4d
mov edx, dword [esp + 0x6c]
push edx
call fcn.1000e9ac
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
cmp dword [esp + 0xbc], esi
jb 0x10006d7c
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.1000e9ac
add esp, 4
mov eax, 0xc0000035
jmp 0x10006f03
cmp esi, 5
je 0x10006d90
cmp esi, 4
jne 0x10006df3
cmp dword [edi + 0x10], ebx
je 0x10006ded
mov esi, 8
cmp dword [esp + 0x80], esi
jb 0x10006db0
mov edx, dword [esp + 0x6c]
push edx
call fcn.1000e9ac
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
cmp dword [esp + 0xbc], esi
jb 0x10006d19
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.1000e9ac
add esp, 4
mov eax, 0xc00000a2
jmp 0x10006f03
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
test byte [eax], 0x10
je 0x10006e46
cmp esi, 1
je 0x10006e21
cmp esi, 3
je 0x10006e21
lea esi, [esp + 0x68]
call fcn.10002000
lea esi, [esp + 0xa4]
call fcn.10002000
mov eax, 0xc0000035
jmp 0x10006f03
cmp dword [esp + 0x30], ebx
je 0x10006e46
lea esi, [esp + 0x68]
call fcn.10002000
lea esi, [esp + 0xa4]
call fcn.10002000
mov eax, 0xc00000ba
jmp 0x10006f03
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov dword [edx], 1
mov eax, dword [0x100212ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x100212ec
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x94], 4
mov ecx, dword [esi]
lea eax, [esp + 0x18]
call fcn.10002090
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [esp + 0x94], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006eb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 8
cmp dword [esp + 0x80], esi
jb 0x10006ed2
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.1000e9ac
add esp, 4
xor edx, edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
cmp dword [esp + 0xbc], esi
jb 0x10006f01
mov eax, dword [esp + 0xa8]
push eax
call fcn.1000e9ac
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1000e9b7
add esp, 0x84
ret 0x2c