Function at 0x1002369
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x100cd66
call fcn.01008898
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
push edi
push edi
push 0x10
mov esi, 0x400
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call ebx
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x10023e2
mov dword [ebp - 0x34], edi
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
lea edi, [eax + 2]
push edi
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x1c], eax
mov ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x1c]
rep stosw word es:[edi], ax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x10
push esi
call ebx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], eax
jge 0x10024b1
push 1
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
push 0xa
push eax
call fcn.01009219
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
mov byte [ebp - 0x11], bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
test bl, bl
je 0x10024a2
push 1
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
push 0xa
push eax
call fcn.01009219
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov edi, dword [ebp - 0x28]
add dword [ebp - 0x18], 2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x100240e
xor edi, edi
push edi
push edi
push 0xf
push esi
call ebx
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x10024c9
mov dword [ebp - 0x4c], edi
jmp 0x10023b5
lea edi, [eax + 2]
push edi
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x1c], eax
mov ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x1c]
rep stosw word es:[edi], ax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0xf
push esi
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov dword [ebp - 4], 1
mov byte [ebp - 4], 6
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0x10012b0
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
push eax
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBuffer_int_
mov dword [ebp - 0x58], eax
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
push ebx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
call edi
mov dword [ebp - 0x18], eax
inc eax
push eax
mov ecx, dword [ebp + 0xc]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
push ebx
push esi
call edi
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
xor esi, esi
inc esi
mov dword [ebp - 4], esi
jmp 0x10023b7