Function at 0x1001e58
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1160
call fcn.01006fb0
push ebx
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x174]
push eax
push 0x1fb
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
je 0x1001efa
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x1001f5f
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x1008394], edx
je 0x1001f86
mov ecx, dword [esp + 0x10]
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, [esp + 0x170]
push eax
jmp 0x1001f53
mov ebx, 0x1001304
push ebx
call fcn.01001aa7
test eax, eax
jne 0x1001f5f
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x1008394], edx
je 0x1001f86
mov ecx, dword [esp + 0x10]
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 0x1001304
push dword [0x1008394]
call esi
xor edi, edi
jmp 0x1001f84
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 4
push edi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
cmp eax, edi
mov dword [0x1008394], eax
je 0x1001f86
push 0x1001214
push eax
call esi
pop ecx
pop ecx
push 0x400
lea eax, [esp + 0x174]
push eax
push 0x1fc
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1002006
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x1002062
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call ebp
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x10083bc], edx
je 0x100207d
mov ecx, dword [esp + 0x10]
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, [esp + 0x170]
push eax
jmp 0x1002056
push 0x10012fc
call fcn.01001aa7
test eax, eax
jne 0x1002062
push 0x10012fc
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call ebp
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x10083bc], edx
je 0x100207d
mov ecx, dword [esp + 0x10]
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 0x10012fc
push dword [0x10083bc]
call esi
xor edi, edi
jmp 0x100207b
push 4
push edi
call ebp
push eax
call ebx
cmp eax, edi
mov dword [0x10083bc], eax
je 0x100207d
push 0x1001214
push eax
call esi
pop ecx
pop ecx
push 0x400
lea eax, [esp + 0x174]
push eax
push 0x1fd
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10020fd
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x1002155
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call ebp
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x10083a4], edx
je 0x1002170
mov ecx, dword [esp + 0x10]
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, [esp + 0x170]
push eax
jmp 0x100214d
push 0x1001214
call fcn.01001aa7
test eax, eax
jne 0x1002155
push 0x1001214
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call ebp
push eax
call ebx
mov edx, eax
cmp edx, edi
mov dword [0x10083a4], edx
je 0x1002170
mov ecx, dword [esp + 0x10]
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 0x1001214
push dword [0x10083a4]
jmp 0x100216c
push 4
push edi
call ebp
push eax
call ebx
cmp eax, edi
mov dword [0x10083a4], eax
je 0x1002170
push 0x1001214
push eax
call esi
pop ecx
pop ecx
cmp dword [0x1008020], 6
je 0x100268d
mov dword [esp + 0x10], 0x1008020
mov esi, 0x1008024
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
push 0x400
lea eax, [esp + 0x974]
push eax
push dword [esi - 0x1c]
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x1008394]
lea eax, [esp + 0x974]
push eax
call edi
push dword [0x1008394]
mov dword [esp + 0x20], eax
push 0
call edi
push dword [0x1008394]
mov dword [esp + 0x2c], eax
push 0
call edi
push dword [0x1008394]
mov dword [esp + 0x48], eax
push 0
call edi
add esp, 0x20
push dword [esp + 0x14]
call fcn.01001aa7
test eax, eax
jne 0x1002251
push 0x10012f8
push dword [esp + 0x18]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002251
push dword [esp + 0x14]
call fcn.01001aa7
test eax, eax
jne 0x1002251
push dword [esp + 0x14]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [eax + eax + 4]
push edi
push 0
call ebp
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [esi - 0x10], edx
je 0x100226f
push dword [esp + 0x14]
mov ecx, edi
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 dword [esi - 0x10]
jmp 0x1002267
push 4
push 0
call ebp
push eax
call ebx
test eax, eax
mov dword [esi - 0x10], eax
je 0x100226f
push 0x1001214
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov edi, dword [esp + 0x18]
push edi
call fcn.01001aa7
test eax, eax
jne 0x10022d3
push 0x10012f8
push edi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10022d3
push edi
call fcn.01001aa7
test eax, eax
jne 0x10022d3
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [eax + eax + 4]
push edi
push 0
call ebp
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [esi - 0xc], edx
je 0x10022f1
push dword [esp + 0x18]
mov ecx, edi
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 dword [esi - 0xc]
jmp 0x10022e9
push 4
push 0
call ebp
push eax
call ebx
test eax, eax
mov dword [esi - 0xc], eax
je 0x10022f1
push 0x1001214
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi]
test ah, 0x40
je 0x10024a8
mov eax, dword [0x10083c0]
test eax, eax
jne 0x100230a
mov eax, 0x400
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x50
lea ecx, [esp + 0xd4]
push ecx
push 0x1f
push eax
call edi
mov eax, dword [0x10083c0]
test eax, eax
jne 0x100232d
mov eax, 0x400
push 0x50
lea ecx, [esp + 0x34]
push ecx
push 0x1003
push eax
call edi
mov eax, dword [0x10083c0]
test eax, eax
jne 0x100234a
mov eax, 0x400
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x28
push eax
call edi
test eax, eax
jne 0x100235f
and word [esp + 0x24], ax
mov eax, dword [0x10083c0]
test eax, eax
jne 0x100236d
mov eax, 0x400
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x29
push eax
call edi
test eax, eax
jne 0x1002382
and word [esp + 0x1c], ax
lea eax, [esp + 0x30]
push 0x10012f4
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [esp + 0x2c]
push eax
call edi
add esp, 0xc
test eax, eax
je 0x10023ed
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
pop ecx
je 0x10023ed
test byte [esi], 4
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x180]
je 0x10023e6
push 0x10012d4
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x18
jmp 0x100241c
push 0x10012b4
jmp 0x10023da
test byte [esi], 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x178]
je 0x100240d
push 0x10012a4
jmp 0x1002412
push 0x1001294
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x10025f0
lea eax, [esp + 0x170]
push 0x10012f8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10025f0
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x10025f0
lea eax, [esp + 0x170]
push eax
call edi
pop ecx
lea edi, [eax + eax + 4]
push edi
push 0
call ebp
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [esi - 8], edx
je 0x100267a
mov ecx, edi
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, [esp + 0x170]
push eax
jmp 0x1002658
test ah, 0x10
je 0x10024c1
push 0x400
lea eax, [esp + 0x974]
push eax
push 0x1f7
jmp 0x10024d8
test ah, 0x20
je 0x10024e9
push 0x400
lea eax, [esp + 0x974]
push eax
push 0x1f8
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea edi, [esp + 0x970]
jmp 0x100251c
test ah, ah
jns 0x1002510
push 0x400
lea eax, [esp + 0x974]
push eax
push 0x1f9
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea edi, [esp + 0x970]
jmp 0x1002514
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x10025fd
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x10025fd
push 0x10012f8
push edi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10025fd
mov eax, dword [esi]
test al, 4
mov ecx, dword [esp + 0x10]
je 0x1002578
cmp dword [ecx], 5
jne 0x1002570
test ah, 2
jne 0x1002570
push edi
push edi
push 0x1001278
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
jmp 0x10025a2
push edi
push 0x100126c
jmp 0x1002591
cmp dword [ecx], 5
jne 0x100258b
test ah, 2
jne 0x100258b
push edi
push edi
push 0x1001250
jmp 0x100255d
push edi
push 0x1001244
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x10025f0
lea eax, [esp + 0x170]
push 0x10012f8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10025f0
lea eax, [esp + 0x170]
push eax
call fcn.01001aa7
test eax, eax
jne 0x10025f0
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
jmp 0x100246d
push 4
push 0
call ebp
push eax
call ebx
test eax, eax
jmp 0x1002667
xor edi, edi
push edi
call fcn.01001aa7
test eax, eax
jne 0x100265d
push 0x10012f8
push edi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100265d
push edi
call fcn.01001aa7
test eax, eax
jne 0x100265d
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [eax + eax + 4]
push edi
push 0
call ebp
push eax
call ebx
mov edx, eax
test edx, edx
mov dword [esi - 8], edx
je 0x100267a
mov ecx, edi
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
push dword [esi - 8]
jmp 0x1002672
push 4
push edi
call ebp
push eax
call ebx
cmp eax, edi
mov dword [esi - 8], eax
je 0x100267a
push 0x1001214
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
add esi, 0x40
lea eax, [esi - 4]
cmp dword [eax], 6
mov dword [esp + 0x10], eax
jne 0x100218a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1160
ret