Function at 0x6e12ca70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x6e12cbe4
cmp eax, 2
je 0x6e12cb24
test eax, eax
je 0x6e12cac0
and dword [ebx + 8], 0xc0000000
mov al, byte [ebx + 0xb]
and eax, 0xffffffbf
or eax, 0xffffff80
mov byte [ebx + 0xb], al
mov dword [ebx], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 4
mov dword [esp + 0xc], 9
lea edi, [ebp - 0x3e]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x15
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocaleInfoW
sub esp, 0x10
test eax, eax
je 0x6e12ca9b
lea esi, [ebp - 0x20]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], esi
call method.QString.fromWCharArray_wchar_t_const__int_
push edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call method.QVariant.QVariant_QString_const_
mov dword [esp], esi
call method.QString.QString__
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 4
lea edi, [ebp - 0xc8]
mov eax, dword [esi + 4]
mov dword [ebp - 0xd4], 0x40
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd8], 0x40
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1008
mov dword [esp], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
call sub.KERNEL32.dll_GetLocaleInfoW
sub esp, 0x10
test eax, eax
je 0x6e12cc3c
lea esi, [ebp - 0x24]
mov dword [esp + 8], 0xffffffff
mov eax, dword [ebp - 0xd0]
mov dword [esp + 4], eax
mov dword [esp], esi
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
call method.QString.fromWCharArray_wchar_t_const__int_
push ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call method.QVariant.QVariant_QString_const_
mov eax, dword [ebp - 0x24]
lock dec dword [eax]
setne dl
test dl, dl
je 0x6e12cc70
mov eax, dword [ebp - 0xd0]
cmp edi, eax
je 0x6e12cab4
mov dword [esp], eax
call sym.QtCore4.dll_qFree_void_
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 4
mov dword [esp + 0xc], 0xd
lea edi, [ebp - 0x3e]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x14
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocaleInfoW
sub esp, 0x10
test eax, eax
je 0x6e12ca9b
lea esi, [ebp - 0x1c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], esi
call method.QString.fromWCharArray_wchar_t_const__int_
push eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call method.QVariant.QVariant_QString_const_
jmp 0x6e12cb0d
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x6e12cc8c
mov eax, dword [ebp - 0xd0]
cmp edi, eax
je 0x6e12ca9b
mov dword [esp], eax
call sym.QtCore4.dll_qFree_void_
jmp 0x6e12ca9b
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
call method.QString.free_QString::Data_
jmp 0x6e12cbc1
mov dword [esp + 4], 0xff
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov dword [esp], eax
call fcn.6e235ac0
mov eax, dword [ebp - 0xd4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1008
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocaleInfoW
sub esp, 0x10
test eax, eax
je 0x6e12cc52
jmp 0x6e12cb7a