Function at 0x40d8f0
Capabilities:
Check os version
Get common file path
Get geographical location
Get system information on windows

Disassembly:
sub esp, 0xba8
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0xba4], eax
lea eax, [esp + 0x44]
mov dword [0x453bec], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x44]
shl edx, 4
sub edx, dword [esp + 0x44]
shl edx, 2
mov dword [0x453bd8], edx
mov dword [0x453bdc], edx
cmp eax, 2
jne 0x40d94b
mov ecx, dword [esp + 0xec]
shl ecx, 4
sub ecx, dword [esp + 0xec]
jmp 0x40d961
cmp eax, 1
jne 0x40d969
mov ecx, dword [esp + 0x98]
shl ecx, 4
sub ecx, dword [esp + 0x98]
lea eax, [edx + ecx*4]
mov dword [0x453bdc], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
push 6
push 0x44f1f0
push 0xe
push 0x400
call esi
push 6
push 0x44f1fc
push 0xf
push 0x400
call esi
xor eax, eax
push 0x9e
push eax
mov word [esp + 0xb14], ax
lea eax, [esp + 0xb16]
push eax
call fcn.00423da0
add esp, 0xc
lea eax, [esp + 0xb0c]
push 0x50
push eax
push 0x1f
push 0x400
call esi
mov ax, word [esp + 0xb0c]
mov edi, 1
mov ecx, dword [0x453bd0]
or ax, 0x20
cmp ax, 0x64
lea eax, [esp + 0xb0c]
push 0x50
push eax
push 0x1003
cmove ecx, edi
push 0x400
mov dword [0x453bd0], ecx
call esi
mov eax, dword [0x453bd4]
cmp word [esp + 0xb0c], 0x48
push 0x114
cmove eax, edi
mov dword [0x453bd4], eax
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.00423da0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x174]
add esp, 0xc
mov dword [esp + 0x168], 0x114
push eax
call edi
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x170]
mov esi, dword [esp + 0x174]
mov dword [0x453bf0], edx
mov dword [0x453bf4], ecx
mov dword [0x453bf8], esi
dec eax
je 0x40dd56
dec eax
jne 0x40ddc0
mov dword [0x44f1e4], 6
mov dword [0x453be0], 2
mov dword [0x453be4], 3
mov dword [0x453c08], eax
push ebx
cmp edx, 6
jb 0x40daca
cmp ecx, 2
jb 0x40daca
call fcn.0040e140
test al, al
je 0x40dbcb
mov eax, dword [0x453bfc]
mov ecx, dword [0x453c00]
jmp 0x40db41
cmp edx, 4
jbe 0x40dbcb
push 0x11c
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00423da0
add esp, 0xc
mov dword [esp + 0x50], 0x11c
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x40dbcb
movzx eax, byte [esp + 0x16a]
movzx ecx, word [esp + 0x166]
mov dword [0x453c08], eax
mov eax, dword [esp + 0x54]
mov dword [0x453bf0], eax
mov eax, dword [esp + 0x58]
mov dword [0x453bf4], eax
mov eax, dword [esp + 0x5c]
mov dword [0x453bf8], eax
movzx eax, word [esp + 0x164]
mov dword [0x453bfc], eax
mov dword [0x453c00], ecx
push ecx
push eax
push str._u._u
push 8
push 0x453c40
call fcn.00414330
mov esi, dword [0x453c08]
xor eax, eax
mov edi, dword [0x453bf0]
add esp, 0x14
mov ebx, dword [0x453bf4]
cmp esi, 4
mov dword [0x44f1e4], 0x14
mov edx, 0x439d80
cmovge esi, eax
mov dword [0x453c08], esi
cmp edi, dword [edx]
jne 0x40db9f
cmp ebx, dword [edx + 4]
jne 0x40db9f
movzx eax, byte [edx + 8]
xor ecx, ecx
cmp esi, 1
sete cl
cmp ecx, eax
je 0x40dbac
add edx, 0x10
cmp edx, 0x439e80
jb 0x40db86
jmp 0x40dbb4
mov eax, dword [edx + 0xc]
mov dword [0x44f1e4], eax
cmp edi, 5
ja 0x40dbbf
jne 0x40dbdf
test ebx, ebx
je 0x40dbdf
mov dword [0x453c10], 0x7f
jmp 0x40dbdf
mov dword [0x44f1e4], 0x14
mov dword [0x453c08], 0
lea eax, [esp + 0x900]
mov dword [esp + 0x8ec], 0
mov dword [esp + 0x8fc], eax
lea ecx, [esp + 0x14]
xor eax, eax
mov dword [esp + 0x8f0], 0
mov word [esp + 0x900], ax
mov esi, 0x439c50
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x8ec]
push 0x44f518
push eax
push 0x43e8c4
mov dword [esp + 0x900], 2
mov dword [esp + 0x904], 0x108
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], str.SoftwareMicrosoftWindows_NTCurrentVersion
call fcn.00412200
test al, al
je 0x40dcb3
push dword [esp + 0x8fc]
lea ecx, [esp + 0x10]
call fcn.00413040
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
test al, al
je 0x40dcb3
test edi, edi
je 0x40dc94
push esi
call dword [sym.imp.USER32.dll_CharLowerW]
push str.preinstallation_environment
push esi
call fcn.00421726
add esp, 8
test eax, eax
je 0x40dcb3
sub eax, esi
sar eax, 1
js 0x40dcb3
or dword [0x453bec], 4
push 0x44f518
lea eax, [esp + 0x8f0]
mov dword [0x453c04], 0
push eax
push str.ReleaseId
lea ecx, [esp + 0x20]
call fcn.00412200
test al, al
je 0x40dd15
mov ebx, dword [esp + 0x8fc]
push 0
push 0x20
push 0xa
push 1
push 4
push 0x453c04
push ebx
call fcn.0040eeb0
add esp, 0x1c
test al, al
jne 0x40dd15
mov eax, dword [vtable.ErrorClass.0]
push ebx
push str.Cannot_read_integer___s_
push 0x44f518
call dword [eax + 0x20]
add esp, 0xc
cmp dword [esp + 0x1c], 0
pop ebx
je 0x40dd29
push dword [esp + 0x14]
call fcn.00421e19
add esp, 4
test edi, edi
je 0x40dd36
push esi
call fcn.00421e19
add esp, 4
lea ecx, [esp + 0x8e8]
call fcn.0040ba00
mov edx, dword [0x453bf0]
mov ecx, dword [0x453bf4]
mov esi, dword [0x453bf8]
jmp 0x40ddc0
mov dword [0x453be0], 1
mov dword [0x453be4], 2
cmp ecx, 0x5a
jb 0x40dd7b
mov dword [0x44f1e4], 5
jmp 0x40ddb6
cmp ecx, 0xa
jb 0x40dd8c
mov dword [0x44f1e4], 4
jmp 0x40ddb6
mov eax, 0x438
cmp si, ax
jbe 0x40dda2
mov dword [0x44f1e4], 3
jmp 0x40ddb6
mov dword [0x453be4], 1
mov dword [0x44f1e4], 2
movzx eax, si
mov dword [esp + 0x174], eax
push esi
push ecx
push edx
push str._d._d._d
push 0x10
push 0x453c20
call fcn.00414330
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x453c0c], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x453be8], eax
lea eax, [esp + 0x6d8]
mov dword [esp + 0x6d4], eax
xor eax, eax
mov word [esp + 0x6d8], ax
lea eax, [esp + 0x6d8]
push 0x108
push eax
mov dword [esp + 0x6cc], 0
mov dword [esp + 0x6d0], 0
mov dword [esp + 0x6d4], 2
mov dword [esp + 0x6d8], 0x108
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40de5b
mov eax, dword [esp + 0x6d4]
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x6c8], ecx
mov eax, dword [esp + 0x6d4]
movzx eax, word [eax]
push eax
call fcn.0042218f
add esp, 4
mov word [0x453c18], ax
mov eax, 0x43
mov dword [esp + 0x10], reloc.OLEAUT32.dll_SysReAllocString
mov word [0x453c1c], ax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x6c4]
mov dword [esp + 0x14], 0x43e940
push 0x44f518
push eax
push str.BootFolder
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00412200
test al, al
je 0x40dedf
mov eax, dword [esp + 0x6d4]
movzx eax, word [eax]
push eax
call fcn.0042218f
add esp, 4
mov word [0x453c1c], ax
mov eax, dword [0x454a44]
test eax, eax
je 0x40def1
lea ecx, [esp + 0x28]
push ecx
call eax
jmp 0x40defc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [0x44f1e8], eax
test ecx, ecx
je 0x40df33
cmp ecx, 6
je 0x40df27
xor edx, edx
mov eax, 4
cmp ecx, 9
cmovne eax, edx
mov dword [0x44f1e0], eax
jmp 0x40df3d
mov dword [0x44f1e0], 5
jmp 0x40df3d
mov dword [0x44f1e0], 1
cmp dword [0x454a48], 0
mov dword [esp + 0x24], 0
je 0x40df72
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x454a48]
test eax, eax
je 0x40df72
cmp dword [esp + 0x24], 0
je 0x40df72
or dword [0x453bec], 1
lea eax, [esp + 0x290]
mov dword [esp + 0x27c], 0
mov dword [esp + 0x28c], eax
lea ecx, [esp + 0x27c]
xor eax, eax
mov dword [esp + 0x280], 0
mov word [esp + 0x290], ax
mov dword [esp + 0x4a0], eax
mov dword [esp + 0x4a4], eax
lea eax, [esp + 0x4b4]
mov dword [esp + 0x4b0], eax
xor eax, eax
push eax
mov dword [esp + 0x288], 2
mov dword [esp + 0x28c], 0x108
mov dword [esp + 0x4ac], 2
mov dword [esp + 0x4b0], 0x108
mov word [esp + 0x4b8], ax
call fcn.0040c910
test al, al
je 0x40e0a3
mov esi, dword [esp + 0x28c]
xor eax, eax
mov ecx, esi
movzx edx, word [esi]
test dx, dx
je 0x40e032
lea ebx, [ebx]
add ecx, 2
cmp dx, 0x5c
cmove eax, ecx
movzx edx, word [ecx]
test dx, dx
jne 0x40e020
test eax, eax
mov ecx, esi
cmovne ecx, eax
cmp ecx, esi
jbe 0x40e040
sub ecx, 2
xor eax, eax
push eax
push 0x43badc
mov word [ecx], ax
lea ecx, [esp + 0x4a8]
push str.writableCheck
push dword [esp + 0x298]
call fcn.0040d030
test al, al
je 0x40e0a3
push 0
push 0x4000000
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x4c8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40e09c
push 0
mov byte [0x44f1ec], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e0a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00413500
lea ecx, [esp + 0x4a0]
call fcn.0040ba00
and dword [esp + 0x4a0], 0xfffffffc
lea ecx, [esp + 0x27c]
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4ac], 0
call fcn.0040ba00
and dword [esp + 0x27c], 0xfffffffc
cmp dword [esp + 0x18], 0
pop edi
mov dword [esp + 0x27c], 0
mov dword [esp + 0x284], 0
pop esi
je 0x40e111
push dword [esp + 0xc]
call fcn.00421e19
add esp, 4
lea ecx, [esp + 0x6bc]
call fcn.0040ba00
mov ecx, dword [esp + 0xba4]
xor ecx, esp
call fcn.00422b84
add esp, 0xba8
ret