Function at 0x6891aa00
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0xc8
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x6891aa44
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x6891ad49
mov eax, dword [ebp - 0x14]
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6891aa6c
push 8
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x6891ad49
cmp dword [ebp - 4], 0xffffffff
jne 0x6891aaf6
push 0
push 0
push 0x100b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call sym.kernelbase.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jle 0x6891aadf
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x6891aabc
push 8
call sub.kernel32.dll_SetLastError
jmp 0x6891ad24
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x100b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call sym.kernelbase.dll_GetLocaleInfoW
test eax, eax
je 0x6891aadf
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
push 0x1009
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.6891b040
add esp, 8
mov dword [ebp - 4], eax
mov edx, 1
test edx, edx
je 0x6891ad24
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
and ecx, 0x20000000
je 0x6891ab39
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
shr eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call sym.kernelbase.dll_GetCalendarInfoW
mov dword [ebp - 8], eax
jmp 0x6891ab8e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x6891ab6a
push 0
mov ecx, dword [ebp - 0x14]
shr ecx, 1
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call sym.kernelbase.dll_GetCalendarInfoW
mov dword [ebp - 8], eax
jmp 0x6891ab8e
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call sym.kernelbase.dll_GetCalendarInfoA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x6891ac30
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x6891ac2b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x6891abd3
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call sym.kernelbase.dll_GetCalendarInfoW
shl eax, 1
mov dword [ebp - 0x20], eax
jmp 0x6891abf3
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call sym.kernelbase.dll_GetCalendarInfoA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jl 0x6891ac00
jmp 0x6891ad24
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6891ac29
jmp 0x6891ad24
jmp 0x6891ac30
jmp 0x6891ad24
cmp dword [ebp - 8], 0
je 0x6891ab03
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x6891ac56
cmp dword [ebp - 0x24], 1
je 0x6891ac67
cmp dword [ebp - 0x24], 2
je 0x6891ac7c
jmp 0x6891ac98
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call ecx
mov dword [ebp - 8], eax
jmp 0x6891ac98
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
mov dword [ebp - 8], eax
jmp 0x6891ac98
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x6891aca7
mov dword [ebp - 8], 1
jmp 0x6891ad24
cmp dword [ebp - 0xc], 0
je 0x6891acb7
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x6891acb9
jmp 0x6891ad24
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0x30
jl 0x6891acf4
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x39
jg 0x6891acf4
mov eax, dword [ebp - 4]
imul eax, eax, 0xa
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
lea eax, [eax + edx - 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x6891acc0
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x28], 0
je 0x6891ad1f
push 0x3f1
call sub.kernel32.dll_SetLastError
mov dword [ebp - 8], 0
jmp 0x6891ad24
jmp 0x6891aaf6
mov edx, dword [ebp - 0x18]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret