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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc08
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0xc04], eax
push esi
push edi
lea eax, [esp + 0x90]
mov dword [0x45f6e8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x90]
shl edx, 4
sub edx, dword [esp + 0x90]
shl edx, 2
mov dword [0x45f754], edx
mov dword [0x45f758], edx
cmp eax, 2
jne 0x40de6c
mov ecx, dword [esp + 0x138]
shl ecx, 4
sub ecx, dword [esp + 0x138]
jmp 0x40de82
cmp eax, 1
jne 0x40de8a
mov ecx, dword [esp + 0xe4]
shl ecx, 4
sub ecx, dword [esp + 0xe4]
lea eax, [edx + ecx*4]
mov dword [0x45f758], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 6
push section..data
push 0xe
push 0x400
call esi
push 6
push 0x45b00c
push 0xf
push 0x400
call esi
push 0xa0
lea eax, [esp + 0xb6c]
push 0
push eax
call fcn.00423280
add esp, 0xc
lea eax, [esp + 0xb68]
push 0x50
push eax
push 0x1f
push 0x400
call esi
mov ax, word [esp + 0xb68]
mov edi, 1
mov ecx, dword [0x45f74c]
or ax, 0x20
cmp ax, 0x64
lea eax, [esp + 0xb68]
push 0x50
push eax
push 0x1003
cmove ecx, edi
push 0x400
mov dword [0x45f74c], ecx
call esi
mov eax, dword [0x45f750]
cmp word [esp + 0xb68], 0x48
push 0x114
cmove eax, edi
mov dword [0x45f750], eax
lea eax, [esp + 0x1b4]
push 0
push eax
call fcn.00423280
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x1bc]
add esp, 0xc
mov dword [esp + 0x1b0], 0x114
push eax
call edi
mov eax, dword [esp + 0x1c0]
mov edx, dword [esp + 0x1b4]
mov ecx, dword [esp + 0x1b8]
mov esi, dword [esp + 0x1bc]
mov dword [0x45f6ec], edx
mov dword [0x45f6f0], ecx
mov dword [0x45f6f4], esi
sub eax, 1
je 0x40e3b6
sub eax, 1
jne 0x40e420
mov dword [0x45b04c], 6
mov dword [0x45f6dc], 2
mov dword [0x45f6e0], 3
mov dword [0x45f704], eax
cmp edx, 6
jb 0x40e26b
cmp ecx, 2
jb 0x40e26b
lea ecx, [esp + 0x30]
mov dword [0x45b04c], 6
call fcn.0041aa90
push 0x45b4e0
lea ecx, [esp + 0x34]
call fcn.0041ae50
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], vtable.SmartCOMPointer_struct_IEnumWbemClassObject_.0
test al, al
je 0x40e094
cmp dword [esp + 0x5c], 4
sbb eax, eax
and eax, dword [esp + 0x5c]
mov dword [0x45f704], eax
movzx eax, word [esp + 0x50]
mov dword [0x45f6ec], eax
movzx eax, word [esp + 0x52]
mov dword [0x45f6f0], eax
movzx eax, word [esp + 0x54]
mov dword [0x45f6f4], eax
movzx eax, word [esp + 0x56]
mov dword [0x45f6f8], eax
movzx eax, word [esp + 0x58]
mov dword [0x45f6fc], eax
test ecx, ecx
je 0x40e052
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], vtable.SmartCOMPointer_struct_IWbemServices_.0
test ecx, ecx
je 0x40e068
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], vtable.SmartCOMPointer_struct_IWbemLocator_.0
test ecx, ecx
je 0x40e07e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esp + 0x34], 0
jl 0x40e2f3
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40e2f3
test ecx, ecx
je 0x40e09e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], vtable.SmartCOMPointer_struct_IWbemServices_.0
test ecx, ecx
je 0x40e0b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], vtable.SmartCOMPointer_struct_IWbemLocator_.0
test ecx, ecx
je 0x40e0ca
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esp + 0x34], 0
jl 0x40e0d7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [0x45b04c], 0x15
mov dword [0x45f704], 0
lea eax, [esp + 0x954]
mov dword [esp + 0x940], 0
mov dword [esp + 0x950], eax
lea ecx, [esp + 0x14]
xor eax, eax
mov dword [esp + 0x944], 0
mov word [esp + 0x954], ax
mov esi, 0x441510
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x940]
push 0x45b4e0
push eax
push 0x447b94
mov dword [esp + 0x954], 2
mov dword [esp + 0x958], 0x108
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], str.SoftwareMicrosoftWindows_NTCurrentVersion
call fcn.004123f0
test al, al
je 0x40e1bf
push dword [esp + 0x950]
lea ecx, [esp + 0xc]
call fcn.00413240
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
test al, al
je 0x40e1bf
test edi, edi
je 0x40e1a0
push esi
call dword [sym.imp.USER32.dll_CharLowerW]
push str.preinstallation_environment
push esi
call fcn.00422310
add esp, 8
test eax, eax
je 0x40e1bf
sub eax, esi
sar eax, 1
js 0x40e1bf
or dword [0x45f6e8], 4
push 0x45b4e0
lea eax, [esp + 0x944]
mov dword [0x45f700], 0
push eax
push str.ReleaseId
lea ecx, [esp + 0x20]
call fcn.004123f0
test al, al
je 0x40e228
mov eax, dword [esp + 0x950]
push 0
push 0x20
push 0xa
push 1
push 4
push 0x45f700
push eax
mov dword [esp + 0x24], eax
call fcn.0040f290
add esp, 0x1c
test al, al
jne 0x40e228
push dword [esp + 8]
mov eax, dword [vtable.ErrorClass.0]
push str.Cannot_read_integer___s_
push 0x45b4e0
call dword [eax + 0x20]
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x40e23b
push dword [esp + 0x18]
call fcn.00427100
add esp, 4
test edi, edi
je 0x40e248
push esi
call fcn.00427100
add esp, 4
lea ecx, [esp + 0x940]
call fcn.0040be80
mov edx, dword [0x45f6ec]
mov ecx, dword [0x45f6f0]
mov esi, dword [0x45f6f4]
jmp 0x40e420
cmp edx, 4
jbe 0x40e0d7
push 0x11c
lea eax, [esp + 0x94]
push 0
push eax
call fcn.00423280
add esp, 0xc
mov dword [esp + 0x90], 0x11c
lea eax, [esp + 0x90]
push eax
call edi
test eax, eax
je 0x40e0d7
movzx eax, byte [esp + 0x1aa]
mov dword [0x45f704], eax
mov eax, dword [esp + 0x94]
mov dword [0x45f6ec], eax
mov eax, dword [esp + 0x98]
mov dword [0x45f6f0], eax
mov eax, dword [esp + 0x9c]
mov dword [0x45f6f4], eax
movzx eax, word [esp + 0x1a4]
mov dword [0x45f6f8], eax
movzx eax, word [esp + 0x1a6]
mov dword [0x45f6fc], eax
push dword [0x45f6fc]
push dword [0x45f6f8]
push str._u._u
push 8
push 0x45f73c
call fcn.004145e0
mov esi, dword [0x45f704]
xor eax, eax
mov edi, dword [0x45f6ec]
add esp, 0x14
cmp esi, 4
mov dword [0x45b04c], 0x15
mov edx, 0x441610
cmovge esi, eax
mov dword [0x45f704], esi
nop dword [eax]
cmp edi, dword [edx]
jne 0x40e35e
mov eax, dword [0x45f6f0]
cmp eax, dword [edx + 4]
jne 0x40e35e
movzx eax, byte [edx + 8]
xor ecx, ecx
cmp esi, 1
sete cl
cmp ecx, eax
je 0x40e36b
add edx, 0x10
cmp edx, 0x441710
jb 0x40e340
jmp 0x40e38f
mov eax, dword [edx + 0xc]
mov dword [0x45b04c], eax
cmp eax, 0x13
jne 0x40e38f
cmp dword [0x45f6f4], 0x44d7
mov ecx, 0x14
cmovae eax, ecx
mov dword [0x45b04c], eax
cmp edi, 5
ja 0x40e3a7
jne 0x40e0eb
cmp dword [0x45f6f0], 0
jbe 0x40e0eb
mov dword [0x45f70c], 0x7f
jmp 0x40e0eb
mov dword [0x45f6dc], 1
mov dword [0x45f6e0], 2
cmp ecx, 0x5a
jb 0x40e3db
mov dword [0x45b04c], 5
jmp 0x40e416
cmp ecx, 0xa
jb 0x40e3ec
mov dword [0x45b04c], 4
jmp 0x40e416
mov eax, 0x438
cmp si, ax
jbe 0x40e402
mov dword [0x45b04c], 3
jmp 0x40e416
mov dword [0x45f6e0], 1
mov dword [0x45b04c], 2
movzx eax, si
mov dword [esp + 0x1bc], eax
push esi
push ecx
push edx
push str._d._d._d
push 0x10
push 0x45f71c
call fcn.004145e0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x45f708], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x45f6e4], eax
lea eax, [esp + 0x72c]
mov dword [esp + 0x728], eax
xor eax, eax
mov word [esp + 0x72c], ax
lea eax, [esp + 0x72c]
push 0x108
push eax
mov dword [esp + 0x720], 0
mov dword [esp + 0x724], 0
mov dword [esp + 0x728], 2
mov dword [esp + 0x72c], 0x108
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40e4bb
mov eax, dword [esp + 0x728]
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x71c], ecx
mov eax, dword [esp + 0x728]
movzx eax, word [eax]
push eax
call fcn.0042b664
add esp, 4
mov word [0x45f714], ax
mov eax, 0x43
mov dword [esp + 0x14], reloc.OLEAUT32.dll_SysReAllocString
mov word [0x45f718], ax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x718]
mov dword [esp + 0x18], 0x447c10
push 0x45b4e0
push eax
push str.BootFolder
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.004123f0
test al, al
je 0x40e53f
mov eax, dword [esp + 0x728]
movzx eax, word [eax]
push eax
call fcn.0042b664
add esp, 4
mov word [0x45f718], ax
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x60]
movaps xmmword [esp + 0x60], xmm0
push eax
movaps xmmword [esp + 0x74], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
cmp dword [0x45ffdc], edx
je 0x40e59f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
call esi
push eax
call dword [0x45ffdc]
mov edx, eax
neg edx
sbb edx, edx
and edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
movzx eax, word [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [0x45b050], ecx
cmp eax, 0xc
ja case.0x40e5ba.1
movzx eax, byte [eax + 0x40e88c]
jmp dword [eax*4 + 0x40e874]
movzx ecx, dx
cmp ecx, 0x1c0
je case.0x40e5ba.5
xor eax, eax
cmp ecx, 0xaa64
sete al
lea eax, [eax*8 + 1]
mov dword [0x45b048], eax
jmp 0x40e61f
mov dword [0x45b048], 8
jmp 0x40e61f
mov dword [0x45b048], 4
jmp 0x40e61f
mov dword [0x45b048], 5
jmp 0x40e61f
mov dword [0x45b048], 9
jmp 0x40e61f
mov dword [0x45b048], 0
cmp dword [0x45ffd8], 0
mov dword [esp + 0x28], 0
je 0x40e650
lea eax, [esp + 0x28]
push eax
call esi
push eax
call dword [0x45ffd8]
test eax, eax
je 0x40e650
cmp dword [esp + 0x28], 0
je 0x40e650
or dword [0x45f6e8], 1
lea eax, [esp + 0x504]
mov dword [esp + 0x4f0], 0
mov dword [esp + 0x500], eax
lea ecx, [esp + 0x4f0]
xor eax, eax
mov dword [esp + 0x4f4], 0
mov word [esp + 0x504], ax
mov dword [esp + 0x2c8], eax
mov dword [esp + 0x2cc], eax
lea eax, [esp + 0x2dc]
mov dword [esp + 0x2d8], eax
xor eax, eax
push eax
push eax
mov dword [esp + 0x500], 2
mov dword [esp + 0x504], 0x108
mov dword [esp + 0x2d8], 2
mov dword [esp + 0x2dc], 0x108
mov word [esp + 0x2e4], ax
call fcn.0040c160
test al, al
je 0x40e741
push 0
push 0x441eb0
push str.writableCheck
push dword [esp + 0x50c]
lea ecx, [esp + 0x2d8]
call fcn.0040d480
test al, al
je 0x40e741
push 0
push 0x4000000
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x2f0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40e73a
push 0
mov byte [0x45b01e], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e741
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x45f74c], 1
jne 0x40e78f
mov eax, dword [str.dd_MM_yy]
mov esi, 0x3c
mov ecx, 0x45b188
test eax, eax
je 0x40e780
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x40e780
sub esi, 1
je 0x40e780
mov word [ecx], dx
add ecx, 2
movzx edx, word [eax]
add eax, 2
test dx, dx
jne 0x40e768
nop
xor eax, eax
mov dword [0x45b28c], 0x447e98
mov word [ecx], ax
cmp dword [0x45f750], 1
jne 0x40e7eb
mov edi, dword [0x45b288]
mov esi, 0x3c
mov eax, edi
mov ecx, str.hh:mm:ss_tt
test eax, eax
je 0x40e7e0
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x40e7e0
nop dword [eax]
sub esi, 1
je 0x40e7e0
mov word [ecx], dx
add ecx, 2
movzx edx, word [eax]
add eax, 2
test dx, dx
jne 0x40e7c0
nop word [eax + eax]
xor eax, eax
mov dword [0x45f824], edi
mov word [ecx], ax
lea ecx, [esp + 0x2c8]
call fcn.0040be80
and dword [esp + 0x2c8], 0xfffffffc
lea ecx, [esp + 0x4f0]
mov dword [esp + 0x2cc], 0
mov dword [esp + 0x2d4], 0
call fcn.0040be80
and dword [esp + 0x4f0], 0xfffffffc
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x4f4], 0
mov dword [esp + 0x4fc], 0
je 0x40e852
push dword [esp + 0x18]
call fcn.00427100
add esp, 4
lea ecx, [esp + 0x718]
call fcn.0040be80
mov ecx, dword [esp + 0xc0c]
pop edi
pop esi
xor ecx, esp
call fcn.00420cb2
mov esp, ebp
pop ebp
ret