Function at 0x402b70
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca50
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [0x45d450], eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402eca
cmp dword [ebp - 0x118], 2
jne 0x402eca
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x45fc64]
cmp eax, dword [esi + 4]
jle 0x402c25
push 0x45fc64
call fcn.00449a9f
add esp, 4
cmp dword [0x45fc64], 0xffffffff
jne 0x402c25
mov edx, 2
push 0
lea ecx, [edx + 4]
call fcn.00421430
test eax, eax
push 0x45fc64
setne byte [0x45fc54]
call fcn.00449a4e
add esp, 4
cmp byte [0x45fc54], 0
je 0x402d07
push ecx
lea edx, [ebp - 0x2e8]
mov dword [ebp - 0x2e8], 3
mov ecx, 3
call fcn.00449910
add esp, 4
test eax, eax
je 0x402cf3
call fcn.004499e0
test al, al
je 0x402c83
push ecx
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 3
mov ecx, 2
call fcn.00449910
add esp, 4
test eax, eax
je 0x402cf3
mov eax, dword [0x45fc60]
cmp eax, dword [esi + 4]
jle 0x402cc8
push 0x45fc60
call fcn.00449a9f
add esp, 4
cmp dword [0x45fc60], 0xffffffff
jne 0x402cc8
xor edx, edx
push 0
lea ecx, [edx + 0xa]
call fcn.00421430
test eax, eax
push 0x45fc60
setne byte [0x45fc70]
call fcn.00449a4e
add esp, 4
cmp byte [0x45fc70], 0
je 0x402d07
push ecx
lea edx, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 3
mov ecx, 0xa
call fcn.00449910
add esp, 4
test eax, eax
jne 0x402d07
push 0x10
push 0x452f54
push str.Cannot_enable_security_mitigations
push 0
call dword [0x4512d8]
mov eax, dword [0x45fc48]
cmp eax, dword [esi + 4]
jle 0x402d64
push 0x45fc48
call fcn.00449a9f
add esp, 4
cmp dword [0x45fc48], 0xffffffff
jne 0x402d64
xor edx, edx
push 0
lea ecx, [edx + 0xa]
call fcn.00421430
test eax, eax
jne 0x402d3e
xor al, al
jmp 0x402d52
xor edx, edx
push 0x3a8a
lea ecx, [edx + 0xa]
call fcn.00421430
test eax, eax
sete al
push 0x45fc48
mov byte [0x45fc44], al
call fcn.00449a4e
add esp, 4
cmp byte [0x45fc44], 0
je 0x402d98
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402d98
push 0xa11
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402d98
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402ddf
push str.SetDefaultDllDirectories
push 0x453600
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402ddf
push 0xc00
mov ecx, esi
call dword [0x4502ac]
call esi
test eax, eax
jne 0x402e6d
push 0x106
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x402e6d
cmp ecx, 0x104
ja 0x402e6d
cmp word [ebp + ecx*2 - 0x2e6], 0x5c
je 0x402e18
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2e4], ax
inc ecx
mov al, byte [str.userenv]
mov esi, str.userenv
test al, al
je 0x402e6d
lea edi, [ebp - 0x2e4]
lea edi, [edi + ecx*2]
nop
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x402e33
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2e4]
push eax
mov dword [ecx + 4], 0x6c006c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov al, byte [esi]
test al, al
jne 0x402e30
call fcn.00401d70
jmp 0x402ee3
push 0x10
push 0x452f54
push str.Unsupported_Windows_version
push 0
call dword [0x4512d8]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 0x10