Function at 0x7d709810
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 0x7d709854
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d709b59
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 0x7d70987c
push 8
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d709b59
cmp dword [ebp - 4], 0xffffffff
jne 0x7d709906
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 0x7d7098ef
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 0x7d7098cc
push 8
call sub.kernel32.dll_SetLastError
jmp 0x7d709b34
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 0x7d7098ef
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.7d709e50
add esp, 8
mov dword [ebp - 4], eax
mov edx, 1
test edx, edx
je 0x7d709b34
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
and ecx, 0x20000000
je 0x7d709949
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 0x7d70999e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x7d70997a
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 0x7d70999e
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 0x7d709a40
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x7d709a3b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x7d7099e3
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 0x7d709a03
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 0x7d709a10
jmp 0x7d709b34
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 0x7d709a39
jmp 0x7d709b34
jmp 0x7d709a40
jmp 0x7d709b34
cmp dword [ebp - 8], 0
je 0x7d709913
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x7d709a66
cmp dword [ebp - 0x24], 1
je 0x7d709a77
cmp dword [ebp - 0x24], 2
je 0x7d709a8c
jmp 0x7d709aa8
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 0x7d709aa8
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 0x7d709aa8
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 0x7d709ab7
mov dword [ebp - 8], 1
jmp 0x7d709b34
cmp dword [ebp - 0xc], 0
je 0x7d709ac7
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x7d709ac9
jmp 0x7d709b34
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0x30
jl 0x7d709b04
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x39
jg 0x7d709b04
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 0x7d709ad0
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 0x7d709b2f
push 0x3f1
call sub.kernel32.dll_SetLastError
mov dword [ebp - 8], 0
jmp 0x7d709b34
jmp 0x7d709906
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