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

Disassembly:
sub esp, 0x518
mov eax, dword [0x418034]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
push ebp
mov ebp, dword [esp + 0x524]
push esi
push edi
mov edi, 0x114
xor ebx, ebx
push edi
lea eax, [esp + 0x14]
push ebx
push eax
mov byte [ebp + 4], bl
mov dword [ebp], 0x17
call fcn.00408c60
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], edi
call esi
test eax, eax
jne 0x4014e7
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], edi
call esi
test eax, eax
je 0x40175c
mov eax, dword [esp + 0x20]
sub eax, 1
je 0x401595
sub eax, 1
jne 0x4015e9
mov eax, dword [esp + 0x14]
cmp eax, 4
ja 0x40150d
mov dword [ebp], 0x11
cmp eax, 5
jne 0x40154c
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x401526
mov dword [ebp], 0x12
jmp 0x4015e9
cmp eax, 1
jne 0x401537
mov dword [ebp], 0x13
jmp 0x4015e9
cmp eax, 2
jne 0x4015e9
mov dword [ebp], 0x14
jmp 0x4015e9
cmp eax, 6
jne 0x401581
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x401565
mov dword [ebp], 0x15
jmp 0x4015e9
cmp eax, 1
jne 0x401573
mov dword [ebp], 0x17
jmp 0x4015e9
cmp eax, 2
jne 0x4015e9
mov dword [ebp], 0x18
jmp 0x4015e9
cmp eax, 7
jne 0x4015e9
cmp dword [esp + 0x18], ebx
jne 0x4015e9
mov dword [ebp], 0x18
jmp 0x4015e9
cmp dword [esp + 0x14], 4
mov dword [ebp], 3
jne 0x4015ce
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4015b4
mov dword [ebp], 1
jmp 0x4015ce
cmp eax, 0xa
jne 0x4015c2
mov dword [ebp], 2
jmp 0x4015ce
cmp eax, 0x5a
jne 0x4015ce
mov dword [ebp], 3
mov eax, dword [esp + 0x1c]
and eax, 0xffff0000
cmp eax, 0x45a0000
jne 0x4015e5
mov dword [ebp], 3
mov byte [ebp + 4], 1
push 0xa
lea edx, [esp + 0x128]
push edx
push 9
xor ecx, ecx
push 0x400
mov byte [ebp + 0x628], bl
mov word [ebp + 0x72c], cx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0x124]
call fcn.00401860
cmp eax, 0xc04
mov dword [ebp + 8], eax
jg 0x401650
je 0x401647
cmp eax, 0x404
je 0x40163e
cmp eax, 0x804
jne 0x40166e
mov dword [ebp + 8], 0x8c0
jmp 0x40166e
mov dword [ebp + 8], 0x4c1
jmp 0x40166e
mov dword [ebp + 8], 0xcc1
jmp 0x40166e
cmp eax, 0x1004
je 0x401667
cmp eax, 0x1404
jne 0x40166e
mov dword [ebp + 8], 0x14c1
jmp 0x40166e
mov dword [ebp + 8], 0x10c0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
and eax, 0xff
add eax, 0xfffffff8
cmp eax, 0xb9
ja case.0x401690.9
movzx eax, byte [eax + 0x40179c]
jmp dword [eax*4 + 0x40177c]
mov dword [ebp + 0xc], 0x3a4
jmp case.0x401690.9
mov dword [ebp + 0xc], 0x3a8
jmp case.0x401690.9
mov dword [ebp + 0xc], 0x3b6
jmp case.0x401690.9
mov dword [ebp + 0xc], 0x3b5
jmp case.0x401690.9
mov dword [ebp + 0xc], 0x4e3
jmp case.0x401690.9
mov dword [ebp + 0xc], 0x4e5
jmp case.0x401690.9
mov dword [ebp + 0xc], 0x4e9
push 0x104
cmp byte [ebp + 4], bl
je 0x40171e
lea edi, [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea ebx, [ebp + 0x114]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0x218]
mov eax, ebp
call fcn.00401aa0
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0x420]
mov edi, ebx
mov eax, ebp
call fcn.00401aa0
jmp 0x40175c
lea edi, [ebp + 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
lea ebx, [ebp + 0x420]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0x10]
mov eax, ebp
call fcn.00401a30
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0x114]
mov edi, ebx
mov eax, ebp
call fcn.00401a30
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403f3b
add esp, 0x518
ret 4