Function at 0x7d706090
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 0x7d7060d4
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d7063d9
mov eax, dword [ebp - 0x14]
push eax
push 0
call sym.kernel32_wrapper.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x7d7060fc
push 8
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d7063d9
cmp dword [ebp - 4], 0xffffffff
jne 0x7d706186
push 0
push 0
push 0x100b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call sym.kernel32_wrapper.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jle 0x7d70616f
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
push 0
call sym.kernel32_wrapper.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x7d70614c
push 8
call sub.kernel32.dll_SetLastError
jmp 0x7d7063b4
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.kernel32_wrapper.dll_GetLocaleInfoW
test eax, eax
je 0x7d70616f
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.7d7066d0
add esp, 8
mov dword [ebp - 4], eax
mov edx, 1
test edx, edx
je 0x7d7063b4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
and ecx, 0x20000000
je 0x7d7061c9
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.kernel32_wrapper.dll_GetCalendarInfoW
mov dword [ebp - 8], eax
jmp 0x7d70621e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x7d7061fa
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.kernel32_wrapper.dll_GetCalendarInfoW
mov dword [ebp - 8], eax
jmp 0x7d70621e
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.kernel32_wrapper.dll_GetCalendarInfoA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d7062c0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x7d7062bb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x7d706263
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.kernel32_wrapper.dll_GetCalendarInfoW
shl eax, 1
mov dword [ebp - 0x20], eax
jmp 0x7d706283
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.kernel32_wrapper.dll_GetCalendarInfoA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jl 0x7d706290
jmp 0x7d7063b4
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.kernel32_wrapper.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x7d7062b9
jmp 0x7d7063b4
jmp 0x7d7062c0
jmp 0x7d7063b4
cmp dword [ebp - 8], 0
je 0x7d706193
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x7d7062e6
cmp dword [ebp - 0x24], 1
je 0x7d7062f7
cmp dword [ebp - 0x24], 2
je 0x7d70630c
jmp 0x7d706328
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 0x7d706328
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 0x7d706328
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 0x7d706337
mov dword [ebp - 8], 1
jmp 0x7d7063b4
cmp dword [ebp - 0xc], 0
je 0x7d706347
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x7d706349
jmp 0x7d7063b4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0x30
jl 0x7d706384
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x39
jg 0x7d706384
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 0x7d706350
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 0x7d7063af
push 0x3f1
call sub.kernel32.dll_SetLastError
mov dword [ebp - 8], 0
jmp 0x7d7063b4
jmp 0x7d706186
mov edx, dword [ebp - 0x18]
push edx
push 0
call sym.kernel32_wrapper.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
push eax
push 0
call sym.kernel32_wrapper.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret