Function at 0xa67c40
Capabilities:
Check os version
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8f8b7
push eax
mov eax, 0x1154
mov dword fs:[0], esp
call fcn.00a7e750
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp al, 6
jb 0xa67c78
mov dword [0xaf56d4], 0xaaf138
jmp 0xa67cd0
call esi
cmp al, 5
jne 0xa67c93
xor ecx, ecx
mov cl, ah
cmp cl, 2
jne 0xa67c93
mov dword [0xaf56d4], 0xaaf150
jmp 0xa67cd0
call esi
cmp al, 5
jne 0xa67cae
xor edx, edx
mov dl, ah
cmp dl, 1
jne 0xa67cae
mov dword [0xaf56d4], 0xaaf168
jmp 0xa67cd0
call esi
cmp al, 5
jne 0xa67cc6
xor ecx, ecx
mov dword [0xaf56d4], 0xaaf180
mov cl, ah
test cl, cl
je 0xa67cd0
mov dword [0xaf56d4], str._d
mov esi, dword [esp + 0x1194]
push esi
call fcn.00a68300
add esp, 4
test eax, eax
jne 0xa67cfa
pop esi
mov ecx, dword [esp + 0x1154]
mov dword fs:[0], ecx
add esp, 0x1160
ret
mov eax, dword [esp + 0x1190]
test eax, eax
je 0xa67d2e
mov eax, dword [esp + 0x117c]
and ah, 0xef
or ah, 8
mov dword [esp + 0x117c], eax
and eax, 0x800
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [esp + 0x10], eax
jmp 0xa67d36
mov dword [esp + 0x10], 0x10
lea ecx, [esp + 0x18]
call fcn.00a155c0
lea ecx, [esp + 0x228]
mov dword [esp + 0x1160], 0
call fcn.00a155c0
mov ecx, dword [esp + 0x116c]
lea edx, [esp + 0x228]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x116c]
push eax
push ecx
push edx
mov byte [esp + 0x1170], 1
call fcn.009fab30
add esp, 0x10
test al, al
jne 0xa67df6
test esi, esi
je 0xa67dae
mov eax, str._DetermineTargetApplication_failed__
test eax, eax
je 0xa67d9f
push eax
call fcn.00a7e07a
add esp, 4
jmp 0xa67da1
xor eax, eax
push eax
push str._DetermineTargetApplication_failed__
mov ecx, esi
call fcn.00a15880
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x228]
mov byte [esp + 0x1160], 0
call fcn.00a155e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1160], 0xffffffff
call fcn.00a155e0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1154]
mov dword fs:[0], ecx
add esp, 0x1160
ret
push ebp
push edi
lea ecx, [esp + 0x230]
call fcn.00a15640
mov esi, eax
lea edi, [esp + 0xb48]
mov cx, word [esi]
push ecx
call fcn.00a8054f
add esp, 4
test eax, eax
je 0xa67e31
mov dx, word [esi + 2]
add esi, 2
push edx
call fcn.00a8054f
add esp, 4
test eax, eax
jne 0xa67e1d
cmp word [esi], 0x22
jne 0xa67e64
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x22
je 0xa67e5b
test ax, ax
je 0xa67e5b
add esi, 2
mov word [edi], ax
add edi, 2
mov ax, word [esi]
cmp ax, 0x22
jne 0xa67e44
cmp word [esi], 0x22
jne 0xa67e64
add esi, 2
mov ax, word [esi]
xor ebp, ebp
test ax, ax
je 0xa67ea4
push eax
call fcn.00a8054f
add esp, 4
test eax, eax
jne 0xa67ea4
mov ax, word [esi]
cmp ax, 0x5c
jne 0xa67e88
xor ebp, ebp
jmp 0xa67e93
cmp ax, 0x2e
jne 0xa67e93
mov ebp, 1
add esi, 2
mov word [edi], ax
add edi, 2
mov ax, word [esi]
test ax, ax
jne 0xa67e6e
push ebx
lea ecx, [esp + 0x72c]
mov word [edi], 0
call fcn.00a155c0
lea ecx, [esp + 0x234]
mov byte [esp + 0x116c], 2
call fcn.00a15640
mov ebx, eax
lea eax, [esp + 0x72c]
push 0
lea ecx, [esp + 0xb50]
push eax
push ecx
call fcn.009ef8b0
add esp, 0xc
test al, al
je 0xa67f3b
test ebp, ebp
jne 0xa67f16
mov edx, 0xaa1464
test edx, edx
je 0xa67f02
push edx
call fcn.00a7e07a
add esp, 4
jmp 0xa67f04
xor eax, eax
push eax
push 0xaa1464
lea ecx, [esp + 0x734]
call fcn.00a15880
lea ecx, [esp + 0x72c]
call fcn.00a15640
push eax
lea ecx, [esp + 0x28]
call fcn.00a15640
push eax
call fcn.00a886d0
add esp, 8
test eax, eax
jne 0xa67f3b
mov ebx, esi
mov ax, word [ebx]
push eax
call fcn.00a8054f
add esp, 4
test eax, eax
je 0xa67f5f
mov cx, word [ebx + 2]
add ebx, 2
push ecx
call fcn.00a8054f
add esp, 4
test eax, eax
jne 0xa67f4b
lea ecx, [esp + 0x93c]
call fcn.00a155c0
lea edx, [esp + 0x93c]
push 0
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1174], 3
call fcn.00a15640
push eax
call fcn.009efa70
add esp, 0xc
test al, al
jne 0xa67fa9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x944]
call fcn.00a15a90
lea ecx, [esp + 0x51c]
call fcn.00a155c0
mov esi, dword [esp + 0x1190]
mov byte [esp + 0x116c], 4
test esi, esi
je 0xa67fd5
push esi
call fcn.00a7e07a
add esp, 4
push eax
push esi
jmp 0xa6800b
lea edx, [esp + 0xd54]
push edx
push 0x208
call fcn.009f5770
lea eax, [esp + 0xd54]
test eax, eax
je 0xa68002
lea ecx, [esp + 0xd54]
push ecx
call fcn.00a7e07a
add esp, 4
lea edx, [esp + 0xd54]
push eax
push edx
lea ecx, [esp + 0x524]
call fcn.00a15a90
mov eax, dword [esp + 0x118c]
test eax, eax
jne 0xa6803d
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [esp + 0x14], eax
mov ecx, eax
cmp byte [ecx], 0
jne 0xa6803a
mov dl, byte [ecx + 1]
test dl, dl
je 0xa680ab
inc ecx
jmp 0xa6802e
mov ecx, dword [esp + 0x1188]
test ch, 4
je 0xa68028
cmp word [eax], 0
jne 0xa68056
cmp word [eax + 2], 0
je 0xa6805b
add eax, 2
jmp 0xa68049
mov ecx, dword [esp + 0x118c]
add eax, 4
sub eax, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push 0
push 0
push 0
sar esi, 1
push 0
push esi
push ecx
push 0
push 0
call ebp
mov edi, eax
push edi
call fcn.009ef3a0
add esp, 4
mov dword [esp + 0x14], eax
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x119c]
push esi
push eax
push 0
push 0
call ebp
mov eax, dword [esp + 0x14]
jmp 0xa6802c
mov ebp, dword [esp + 0x1188]
mov edi, dword [esp + 0x1194]
sub ecx, eax
mov esi, dword [esp + 0x944]
add ecx, 2
mov edx, ebp
mov word [esp + 0x10], cx
mov word [esp + 0x12], cx
lea ecx, [esp + 0x20]
and dh, 0xfb
push ecx
push edi
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x450]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x534]
mov dword [esp + 0x30], 0
call fcn.00a15640
push eax
push ebx
mov ebx, dword [esp + 0x3c]
push esi
push ebx
call fcn.00a685c0
mov esi, eax
add esp, 0x28
test esi, esi
je 0xa68233
mov ecx, dword [esp + 0x4ce]
and ecx, 7
mov eax, ecx
dec eax
je 0xa68204
dec eax
je 0xa681b9
sub eax, 2
je 0xa68166
mov eax, dword [esp + 0x11a0]
test eax, eax
je 0xa68154
push ecx
push str._Unexpected_VDMState__d__
push eax
call fcn.00a16060
add esp, 0xc
push 0x54f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0xa68253
mov edi, dword [esp + 0x11a0]
test edi, edi
je 0xa68194
mov eax, str._VDM_PRESENT_AND_READY_
test eax, eax
je 0xa68185
push eax
call fcn.00a7e07a
add esp, 4
jmp 0xa68187
xor eax, eax
push eax
push str._VDM_PRESENT_AND_READY_
mov ecx, edi
call fcn.00a15880
mov eax, dword [esp + 0x1198]
test eax, eax
je 0xa68253
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0xa68253
mov esi, dword [esp + 0x11a0]
test esi, esi
je 0xa681e7
mov edx, str._VDM_PRESENT_NOT_READY_
test edx, edx
je 0xa681d8
push edx
call fcn.00a7e07a
add esp, 4
jmp 0xa681da
xor eax, eax
push eax
push str._VDM_PRESENT_NOT_READY_
mov ecx, esi
call fcn.00a15880
mov eax, dword [esp + 0x1198]
mov ecx, dword [esp + 0x18]
push esi
push eax
push edi
push ebp
push ecx
push ebx
call fcn.00a68cf0
add esp, 0x18
mov esi, eax
jmp 0xa68253
mov esi, dword [esp + 0x11a0]
test esi, esi
je 0xa681e7
mov edx, str._VDM_NOT_PRESENT_
test edx, edx
je 0xa68229
push edx
call fcn.00a7e07a
add esp, 4
push eax
push str._VDM_NOT_PRESENT_
jmp 0xa681e0
xor eax, eax
push eax
push str._VDM_NOT_PRESENT_
jmp 0xa681e0
mov edi, dword [esp + 0x11a0]
test edi, edi
je 0xa68253
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CsrCheckVDM_failed_with_error__d__
push edi
call fcn.00a16060
add esp, 0xc
mov eax, dword [esp + 0x118c]
pop ebx
test eax, eax
jne 0xa6826c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0xa68281
test ebp, 0x400
je 0xa68281
mov eax, dword [esp + 0x10]
push eax
call fcn.00a7d8f0
add esp, 4
lea ecx, [esp + 0x518]
mov byte [esp + 0x1168], 3
call fcn.00a155e0
lea ecx, [esp + 0x938]
mov byte [esp + 0x1168], 2
call fcn.00a155e0
lea ecx, [esp + 0x728]
mov byte [esp + 0x1168], 1
call fcn.00a155e0
lea ecx, [esp + 0x230]
mov byte [esp + 0x1168], 0
call fcn.00a155e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1168], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0x1160]
pop edi
mov eax, esi
pop ebp
pop esi
mov dword fs:[0], ecx
add esp, 0x1160
ret