Function at 0x1002312
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.01009d70
mov eax, dword [0x100bb2c]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 4], eax
lea eax, [ebp - 0x954]
push eax
push 0x1fb
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10023ba
lea eax, [ebp - 0x954]
push eax
call fcn.01001f37
test eax, eax
jne 0x1002427
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [ebp - 0x1158], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x100bb38], edx
je 0x1002452
mov ecx, dword [ebp - 0x1158]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x954]
push eax
jmp 0x1002417
mov esi, 0x1001344
push esi
call fcn.01001f37
test eax, eax
jne 0x1002427
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [ebp - 0x1158], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x100bb38], edx
je 0x1002452
mov ecx, dword [ebp - 0x1158]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x1001344
push dword [0x100bb38]
call dword [sym.imp.msvcrt.dll_wcscpy]
xor edi, edi
jmp 0x1002450
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 4
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
cmp eax, edi
mov dword [0x100bb38], eax
je 0x1002452
push 0x100123c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x400
lea eax, [ebp - 0x954]
push eax
push 0x1fc
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10024d2
lea eax, [ebp - 0x954]
push eax
call fcn.01001f37
test eax, eax
jne 0x1002536
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [ebp - 0x1158], eax
call esi
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x100d368], edx
je 0x1002555
mov ecx, dword [ebp - 0x1158]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x954]
push eax
jmp 0x1002526
push 0x100133c
call fcn.01001f37
test eax, eax
jne 0x1002536
push 0x100133c
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [ebp - 0x1158], eax
call esi
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x100d368], edx
je 0x1002555
mov ecx, dword [ebp - 0x1158]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x100133c
push dword [0x100d368]
call dword [sym.imp.msvcrt.dll_wcscpy]
xor edi, edi
jmp 0x1002553
push 4
push edi
call esi
push eax
call ebx
cmp eax, edi
mov dword [0x100d368], eax
je 0x1002555
push 0x100123c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x400
lea eax, [ebp - 0x954]
push eax
push 0x1fd
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10025d5
lea eax, [ebp - 0x954]
push eax
call fcn.01001f37
test eax, eax
jne 0x1002631
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [ebp - 0x1158], eax
call esi
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x100c34c], edx
je 0x1002650
mov ecx, dword [ebp - 0x1158]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x954]
push eax
jmp 0x1002629
push 0x100123c
call fcn.01001f37
test eax, eax
jne 0x1002631
push 0x100123c
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [ebp - 0x1158], eax
call esi
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x100c34c], edx
je 0x1002650
mov ecx, dword [ebp - 0x1158]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x100123c
push dword [0x100c34c]
jmp 0x1002648
push 4
push edi
call esi
push eax
call ebx
cmp eax, edi
mov dword [0x100c34c], eax
je 0x1002650
push 0x100123c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp dword [0x100b040], 6
je 0x1002bb9
mov edi, 0x100b044
mov dword [ebp - 0x1158], 0x100b040
mov dword [ebp - 0x1160], edi
push 0x400
lea eax, [ebp - 0x1154]
push eax
push dword [edi - 0x1c]
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x100bb38]
lea eax, [ebp - 0x1154]
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
push dword [0x100bb38]
mov dword [ebp - 0x1168], eax
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
push dword [0x100bb38]
mov dword [ebp - 0x116c], eax
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
push dword [0x100bb38]
mov dword [ebp - 0x115c], eax
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
add esp, 0x20
push dword [ebp - 0x1168]
call fcn.01001f37
test eax, eax
jne 0x1002771
push 0x1001338
push dword [ebp - 0x1168]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002771
push dword [ebp - 0x1168]
call fcn.01001f37
test eax, eax
jne 0x1002771
push dword [ebp - 0x1168]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push 0
mov dword [ebp - 0x1164], eax
call esi
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [edi - 0x10], edx
je 0x100278f
mov ecx, dword [ebp - 0x1164]
push dword [ebp - 0x1168]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x1160]
push dword [eax - 0x10]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, dword [ebp - 0x1160]
jmp 0x100278d
push 4
push 0
call esi
push eax
call ebx
test eax, eax
mov dword [edi - 0x10], eax
je 0x100278f
push 0x100123c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x116c]
call fcn.01001f37
test eax, eax
jne 0x1002825
push 0x1001338
push dword [ebp - 0x116c]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002825
push dword [ebp - 0x116c]
call fcn.01001f37
test eax, eax
jne 0x1002825
push dword [ebp - 0x116c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push 0
mov dword [ebp - 0x1164], eax
call esi
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [edi - 0xc], edx
je 0x1002843
mov ecx, dword [ebp - 0x1164]
push dword [ebp - 0x116c]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x1160]
push dword [eax - 0xc]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, dword [ebp - 0x1160]
jmp 0x1002841
push 4
push 0
call esi
push eax
call ebx
test eax, eax
mov dword [edi - 0xc], eax
je 0x1002843
push 0x100123c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [edi]
test ah, 0x40
je 0x10029e2
push 0x50
lea eax, [ebp - 0x154]
push eax
push 0x1f
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x50
lea eax, [ebp - 0xb4]
push eax
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x28
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1002898
and word [ebp - 0x14], ax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x29
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10028b3
and word [ebp - 0xc], ax
lea eax, [ebp - 0xb4]
push 0x1001334
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
test eax, eax
je 0x100291e
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x100291e
test byte [edi], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x954]
je 0x1002917
push 0x1001314
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x18
jmp 0x100294d
push 0x10012f4
jmp 0x100290b
test byte [edi], 4
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x954]
je 0x100293e
push 0x10012e4
jmp 0x1002943
push 0x10012d4
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x954]
push eax
call fcn.01001f37
test eax, eax
jne 0x1002b80
lea eax, [ebp - 0x954]
push 0x1001338
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002b80
lea eax, [ebp - 0x954]
push eax
call fcn.01001f37
test eax, eax
jne 0x1002b80
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push 0
mov dword [ebp - 0x1164], eax
call esi
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [edi - 8], edx
je 0x1002b9e
mov ecx, dword [ebp - 0x1164]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x954]
push eax
jmp 0x1002b69
test ah, 0x10
je 0x10029fa
push 0x400
lea eax, [ebp - 0x1154]
push eax
push 0x1f7
jmp 0x1002a10
test ah, 0x20
je 0x1002a26
push 0x400
lea eax, [ebp - 0x1154]
push eax
push 0x1f8
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x1154]
mov dword [ebp - 0x115c], eax
jmp 0x1002a5c
test ah, ah
jns 0x1002a4f
push 0x400
lea eax, [ebp - 0x1154]
push eax
push 0x1f9
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x1154]
mov dword [ebp - 0x115c], eax
cmp dword [ebp - 0x115c], 0
je 0x1002b04
push dword [ebp - 0x115c]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1002b04
push 0x1001338
push dword [ebp - 0x115c]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002b04
mov eax, dword [edi]
test al, 4
mov ecx, dword [ebp - 0x1158]
je 0x1002ac7
cmp dword [ecx], 5
jne 0x1002aba
test ah, 2
jne 0x1002aba
push dword [ebp - 0x115c]
push dword [ebp - 0x115c]
push 0x10012b8
lea eax, [ebp - 0x954]
jmp 0x1002943
push dword [ebp - 0x115c]
push 0x10012ac
jmp 0x1002aef
cmp dword [ecx], 5
jne 0x1002ae4
test ah, 2
jne 0x1002ae4
push dword [ebp - 0x115c]
push dword [ebp - 0x115c]
push 0x1001290
jmp 0x1002aaf
push dword [ebp - 0x115c]
push 0x1001284
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x100294d
push 0
call fcn.01001f37
test eax, eax
jne 0x1002b80
push 0x1001338
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002b80
push 0
call fcn.01001f37
test eax, eax
jne 0x1002b80
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push 0
mov dword [ebp - 0x1164], eax
call esi
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [edi - 8], edx
je 0x1002b9e
mov ecx, dword [ebp - 0x1164]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0
mov eax, dword [ebp - 0x1160]
push dword [eax - 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, dword [ebp - 0x1160]
jmp 0x1002b9c
push 4
push 0
call esi
push eax
call ebx
test eax, eax
mov dword [edi - 8], eax
je 0x1002b9e
push 0x100123c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
add edi, 0x40
lea eax, [edi - 4]
cmp dword [eax], 6
mov dword [ebp - 0x1160], edi
mov dword [ebp - 0x1158], eax
jne 0x1002672
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009ab2
leave
ret