Function at 0x408150
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x41584b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], al
call fcn.00409270
lea ecx, [esp + 0x5c]
mov dword [esp + 0xf8], ebp
push ecx
mov dword [esp + 0x60], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x6c], 1
jne 0x40830f
cmp dword [esp + 0x64], ebp
jne 0x40830f
lea edx, [esp + 0x28]
push 0x32
push edx
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov edi, 0x41a588
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x41a598]
not ecx
dec ecx
push ecx
push 0x41a588
push eax
push ebp
mov ecx, 0x41a590
call fcn.00409750
test eax, eax
je 0x40824f
mov ebx, 0x41a590
mov esi, ebx
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00409750
test eax, eax
je 0x4082c5
mov edi, 0x41a588
or ecx, 0xffffffff
xor eax, eax
inc ebp
add esi, 0x20
repne scasb al, byte es:[edi]
mov eax, dword [esi + 8]
mov ebx, esi
not ecx
dec ecx
push ecx
push 0x41a588
push eax
push 0
mov ecx, esi
call fcn.00409750
test eax, eax
jne 0x4081fb
mov ebp, dword [esp + 0x100]
mov al, byte [esp + 0x13]
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00409270
mov edi, 0x41a588
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00409440
test al, al
je 0x4082a8
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x41a588
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
add eax, ebx
mov byte [eax], 0
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00409270
mov eax, ebp
jmp 0x4083b6
mov esi, dword [esp + 0x100]
push 0
shl ebp, 5
add ebp, 0x41a5a0
mov cl, byte [ebp]
mov byte [esi], cl
mov ecx, esi
call fcn.00409270
mov edx, dword [0x4160ec]
mov ecx, esi
push edx
push 0
push ebp
call fcn.00409000
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00409270
jmp 0x4083b4
lea eax, [esp + 0x28]
push 0x32
push eax
push 0x5a
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00409440
test al, al
je 0x408367
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov byte [eax + ebx], 0
mov esi, dword [esp + 0x100]
mov cl, byte [esp + 0x14]
push ebp
mov byte [esi], cl
mov ecx, esi
call fcn.00409270
mov edx, dword [0x4160ec]
lea eax, [esp + 0x14]
push edx
push ebp
push eax
mov ecx, esi
call fcn.00409000
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x4083b4
mov al, byte [ecx - 1]
test al, al
je 0x4083aa
cmp al, 0xff
je 0x4083aa
dec al
mov byte [ecx - 1], al
jmp 0x4083b4
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec
ret 4