Function at 0x10002970
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc14
mov eax, dword [0x10037a90]
xor eax, esp
mov dword [esp + 0xc10], eax
cmp dword [esp + 0xc18], 0x17
mov eax, dword [esp + 0xc24]
mov dword [esp + 4], eax
ja 0x10002bd6
mov eax, 0x3b
cmp dword [esp + 0xc1c], eax
ja 0x10002bd6
cmp dword [esp + 0xc20], eax
ja 0x10002bd6
push ebp
push esi
push edi
push 0x3ff
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.10015a10
push 0x3ff
lea edx, [esp + 0x42d]
push 0
push edx
mov byte [esp + 0x434], 0
call fcn.10015a10
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0x18
push 0x400
lea eax, [esp + 0x20]
push eax
push 0x1001
push 0x400
call ebp
xor eax, eax
mov cl, byte [esp + eax + 0x1c]
mov byte [esp + eax + 0x41c], cl
inc eax
test cl, cl
jne 0x10002a12
push 0x400
lea ecx, [esp + 0x20]
push ecx
push 0x1002
push 0x400
call ebp
lea edx, [esp + 0x1c]
push edx
call fcn.10015b68
add esp, 4
test eax, eax
je 0x10002a98
lea edi, [esp + 0x41c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002a51
mov ax, word [0x1002e50c]
mov word [edi], ax
lea eax, [esp + 0x1c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002a68
lea edi, [esp + 0x41c]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002a80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x400
lea ecx, [esp + 0x20]
push ecx
push 0x1004
push 0x800
call ebp
lea edx, [esp + 0x1c]
push edx
call fcn.10015b68
add esp, 4
test eax, eax
je 0x10002b09
lea edi, [esp + 0x41c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002ac7
mov ax, word [0x1002e508]
mov word [edi], ax
lea eax, [esp + 0x1c]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002ae0
lea edi, [esp + 0x41c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002af1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x41c]
push ecx
push 0
call fcn.1001788b
lea edx, [esp + 0x1c]
push edx
call fcn.10015e5a
lea eax, [esp + 0x20]
push eax
call fcn.10015e33
mov edx, dword [esp + 0xc38]
mov ecx, dword [esp + 0xc34]
push eax
push 0x1002e510
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc44]
lea edx, [esp + 0x834]
push 0x400
push edx
mov dword [eax], ecx
call fcn.10016a2d
add esp, 0x20
lea ecx, [esp + 0xc]
call fcn.100025e0
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x81c]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10002b80
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
test eax, eax
je 0x10002bb0
mov edx, dword [esp + 0x10]
push eax
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
lea ecx, [esp + 0xc]
call fcn.10002470
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.100159fa
add esp, 0xc14
ret
mov ecx, dword [esp + 0xc10]
xor ecx, esp
xor eax, eax
call fcn.100159fa
add esp, 0xc14
ret