Function at 0x407ec0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x41582b
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 0x408082
cmp dword [esp + 0x64], ebp
jne 0x408082
lea edx, [esp + 0x28]
push 0x32
push edx
push 0x1001
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 [0x41c378]
not ecx
dec ecx
push ecx
push 0x41a588
push eax
push ebp
mov ecx, 0x41c370
call fcn.00409750
test eax, eax
je 0x407fc2
mov ebx, 0x41c370
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 0x408038
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 0x407f6e
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 0x40801b
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 0x408129
mov esi, dword [esp + 0x100]
push 0
shl ebp, 5
add ebp, 0x41c380
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 0x408127
lea eax, [esp + 0x28]
push 0x32
push eax
push 0x59
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 0x4080da
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 0x408127
mov al, byte [ecx - 1]
test al, al
je 0x40811d
cmp al, 0xff
je 0x40811d
dec al
mov byte [ecx - 1], al
jmp 0x408127
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