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

Disassembly:
sub esp, 0x534
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x94
mov esi, ecx
lea eax, [esp + 0x10]
push ebx
push eax
mov byte [esi + 5], bl
mov dword [esi], 0x17
call fcn.00415440
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
call edi
test eax, eax
jne 0x412197
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x94
call edi
test eax, eax
je 0x412450
push 0x9c
lea eax, [esp + 0xa4]
push ebx
push eax
mov byte [esi + 4], bl
call fcn.00415440
add esp, 0xc
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], 0x9c
call edi
cmp byte [esp + 0x13a], 3
mov ecx, 1
jne 0x4121d7
mov byte [esi + 4], cl
mov eax, dword [esp + 0x1c]
sub eax, ecx
je 0x412286
sub eax, ecx
jne 0x4122d2
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x4121fa
mov dword [esi], 0x11
cmp eax, 5
jne 0x412235
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x412212
mov dword [esi], 0x12
jmp 0x4122d2
cmp eax, ecx
jne 0x412221
mov dword [esi], 0x13
jmp 0x4122d2
cmp eax, 2
jne 0x4122d2
mov dword [esi], 0x14
jmp 0x4122d2
cmp eax, 6
jne 0x412273
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41224d
mov dword [esi], 0x15
jmp 0x4122d2
cmp eax, ecx
jne 0x412259
mov dword [esi], 0x17
jmp 0x4122d2
cmp eax, 2
jne 0x412266
mov dword [esi], 0x18
jmp 0x4122d2
cmp eax, 3
jne 0x4122d2
mov dword [esi], 0x18
jmp 0x4122d2
cmp eax, 7
jne 0x4122d2
cmp dword [esp + 0x14], ebx
jne 0x4122d2
mov dword [esi], 0x18
jmp 0x4122d2
cmp dword [esp + 0x10], 4
mov dword [esi], 3
jne 0x4122b7
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41229f
mov dword [esi], ecx
jmp 0x4122b7
cmp eax, 0xa
jne 0x4122ac
mov dword [esi], 2
jmp 0x4122b7
cmp eax, 0x5a
jne 0x4122b7
mov dword [esi], 3
mov edx, dword [esp + 0x18]
and edx, 0xffff0000
cmp edx, 0x45a0000
jne 0x4122cf
mov dword [esi], 3
mov byte [esi + 5], cl
push 0xa
lea ecx, [esp + 0x140]
push ecx
push 9
xor eax, eax
push 0x400
mov byte [esi + 0x628], bl
mov word [esi + 0x72c], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x13c]
push edx
mov ecx, esi
call fcn.00411060
cmp eax, 0xc04
mov dword [esi + 8], eax
jg 0x41233c
je 0x412333
cmp eax, 0x404
je 0x41232a
cmp eax, 0x804
jne 0x41235a
mov dword [esi + 8], 0x8c0
jmp 0x41235a
mov dword [esi + 8], 0x4c1
jmp 0x41235a
mov dword [esi + 8], 0xcc1
jmp 0x41235a
cmp eax, 0x1004
je 0x412353
cmp eax, 0x1404
jne 0x41235a
mov dword [esi + 8], 0x14c1
jmp 0x41235a
mov dword [esi + 8], 0x10c0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
and eax, 0xff
add eax, 0xfffffff8
cmp eax, 0xb9
ja case.0x41237c.9
movzx eax, byte [eax + 0x41248c]
jmp dword [eax*4 + 0x41246c]
mov dword [esi + 0xc], 0x3a4
jmp case.0x41237c.9
mov dword [esi + 0xc], 0x3a8
jmp case.0x41237c.9
mov dword [esi + 0xc], 0x3b6
jmp case.0x41237c.9
mov dword [esi + 0xc], 0x3b5
jmp case.0x41237c.9
mov dword [esi + 0xc], 0x4e3
jmp case.0x41237c.9
mov dword [esi + 0xc], 0x4e5
jmp case.0x41237c.9
mov dword [esi + 0xc], 0x4e9
push 0x104
cmp byte [esi + 5], bl
je 0x41240e
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea ebx, [esi + 0x114]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esi + 0xc]
push ecx
push edi
lea edx, [esi + 0x218]
push edx
mov ecx, esi
call fcn.00411380
mov eax, dword [esi + 0xc]
push eax
push ebx
lea ecx, [esi + 0x420]
push ecx
mov ecx, esi
call fcn.00411380
jmp 0x412450
lea edi, [esi + 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
lea ebx, [esi + 0x420]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esi + 0xc]
push edx
push edi
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.00411300
mov ecx, dword [esi + 0xc]
push ecx
push ebx
lea edx, [esi + 0x114]
push edx
mov ecx, esi
call fcn.00411300
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004153dc
add esp, 0x534
ret