Function at 0x4015b0
Capabilities:
Check os version
Get common file path
Get geographical location

Disassembly:
sub esp, 0x494
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xc]
mov ebx, 0x94
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
mov byte [esi + 4], 0
mov dword [esi], 0x13
mov dword [esp + 0x10], ebx
call edi
test eax, eax
jne 0x4015ff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
call edi
test eax, eax
je 0x40181c
mov eax, dword [esp + 0x1c]
dec eax
je 0x40164b
dec eax
jne 0x40169e
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x40161c
mov dword [esi], 0x11
cmp eax, 5
jne 0x40169e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401631
mov dword [esi], 0x12
jmp 0x40169e
cmp eax, 1
jne 0x40163e
mov dword [esi], 0x13
jmp 0x40169e
cmp eax, 2
jne 0x40169e
mov dword [esi], 0x14
jmp 0x40169e
mov eax, dword [esp + 0x10]
mov dword [esi], 3
cmp eax, 4
jne 0x401682
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40166a
mov dword [esi], 1
jmp 0x401682
cmp eax, 0xa
jne 0x401677
mov dword [esi], 2
jmp 0x401682
cmp eax, 0x5a
jne 0x401682
mov dword [esi], 3
mov edx, dword [esp + 0x18]
and edx, 0xffff0000
cmp edx, 0x45a0000
jne 0x40169a
mov dword [esi], 3
mov byte [esi + 4], 1
lea eax, [esp + 0xa0]
push 0xa
push eax
push 9
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.004018f0
cmp eax, 0xc04
mov dword [esi + 8], eax
jg 0x4016f9
je 0x4016f0
cmp eax, 0x404
je 0x4016e7
cmp eax, 0x804
jne 0x401717
mov dword [esi + 8], 0x8c0
jmp 0x401717
mov dword [esi + 8], 0x4c1
jmp 0x401717
mov dword [esi + 8], 0xcc1
jmp 0x401717
cmp eax, 0x1004
je 0x401710
cmp eax, 0x1404
jne 0x401717
mov dword [esi + 8], 0x14c1
jmp 0x401717
mov dword [esi + 8], 0x10c0
mov edx, dword [esi + 8]
lea eax, [esp + 0xa0]
push edx
push eax
push str.Locale___s___04x_n
call fcn.00401260
mov ecx, dword [esi + 8]
add esp, 0xc
and ecx, 0xff
mov dword [esi + 0xc], 0x4e4
lea eax, [ecx - 0x11]
cmp eax, 0xb0
ja case.0x401752.21
xor edx, edx
mov dl, byte [eax + 0x40183c]
jmp dword [edx*4 + 0x401828]
mov dword [esi + 0xc], 0x3a4
jmp case.0x401752.21
mov dword [esi + 0xc], 0x3a8
jmp case.0x401752.21
mov dword [esi + 0xc], 0x3b6
jmp case.0x401752.21
mov dword [esi + 0xc], 0x3b5
mov al, byte [esi + 4]
test al, al
je 0x4017d5
lea edi, [esi + 0x10]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ebx, [esi + 0x114]
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x218]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004019f0
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x420]
push edx
push ebx
push eax
mov ecx, esi
call fcn.004019f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x494
ret
lea edi, [esi + 0x218]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ebx, [esi + 0x420]
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x10]
push ecx
push edi
push edx
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x114]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004019b0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x494
ret