Function at 0x10079684
Capabilities:
Get geographical location

Disassembly:
push 0x44
mov eax, 0x1003532f
call fcn.1002c427
mov ebx, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ecx
xor eax, eax
lea ecx, [ebp - 0x40]
mov esi, 0x100a7388
mov dword [ebp - 0x50], eax
push esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0xd], al
mov byte [ebp - 0xe], al
call fcn.10037ec3
xor edi, edi
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 4], edi
call fcn.10037ec3
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10037ec3
push 2
pop eax
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], al
call fcn.10037ec3
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.10037ec3
push edi
push edi
push 0x1003
mov byte [ebp - 4], 4
push dword [0x100a7410]
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov edi, eax
test edi, edi
jne 0x10079734
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jle 0x1007972e
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10079965
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002b748
mov esi, eax
mov dword [ebp - 0x3c], esi
pop ecx
test esi, esi
jne 0x10079761
mov esi, 0x8007000e
mov dword [ebp - 0x18], esi
jmp 0x10079965
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.1002e3fd
add esp, 0xc
push edi
push esi
push 0x1003
push dword [0x100a7410]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x100797ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jle 0x100797a4
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x18], esi
test esi, esi
js 0x1007995c
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call fcn.1003a500
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.1003a440
mov eax, dword [ebp - 0x1c]
xor esi, esi
and dword [ebp - 0x20], 0
xor edi, edi
cmp dword [eax - 0xc], esi
jle 0x10079828
mov ebx, dword [ebp - 0x20]
push edi
lea ecx, [ebp - 0x1c]
call fcn.10077044
movzx ecx, ax
mov eax, ecx
sub eax, 0x20
je 0x10079819
sub eax, 0x28
je 0x10079816
sub eax, 0x20
je 0x10079812
sub eax, 5
je 0x1007980d
sub eax, 6
je 0x10079819
sub eax, 1
je 0x10079807
test bx, bx
jne 0x10079804
mov ebx, ecx
inc esi
jmp 0x10079819
mov byte [ebp - 0xe], 1
jmp 0x10079819
mov dword [ebp - 0x4c], esi
jmp 0x10079819
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x100797d1
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.1003a500
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.1003a440
lea ecx, [ebp - 0x14]
call fcn.10079405
mov ecx, eax
call fcn.10060884
mov ecx, eax
call fcn.10060820
and dword [ebp - 0x34], 0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x28], esi
jmp 0x10079861
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.10078a6b
mov ecx, dword [ebp - 0x14]
mov edi, eax
test edi, edi
jns 0x1007987b
mov edi, dword [ecx - 0xc]
mov edx, dword [ebp - 0x24]
push esi
push edi
call fcn.100760d7
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x1007995c
add dword [ebp - 0x28], 4
lea eax, [edi + 1]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
push 2
inc eax
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ecx
jb 0x1007985e
xor edi, edi
mov eax, dword [ebp + edi*4 - 0x50]
cmp eax, ecx
jae 0x10079954
push dword [ebp + eax*4 - 0x48]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov ecx, edi
sub ecx, 0
je 0x100798d5
sub ecx, 1
jne 0x100798d9
mov word [ebx + 0xa], ax
jmp 0x100798d9
mov word [ebx + 8], ax
push 2
inc edi
pop ecx
cmp edi, ecx
jb 0x100798ac
cmp byte [ebp - 0xd], 0
je 0x1007995c
cmp byte [ebp - 0xe], 0
je 0x1007995c
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.10079233
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x1007995c
mov edi, dword [ebp - 0x38]
mov ecx, edi
call fcn.1003a500
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.1003a440
push 0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.10078aa2
test eax, eax
je 0x10079938
movzx eax, word [ebx + 8]
cmp eax, 0xc
je 0x1007995c
add eax, 0xc
mov word [ebx + 8], ax
jmp 0x1007995c
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.10078aa2
test eax, eax
je 0x1007995c
cmp word [ebx + 8], 0xc
jne 0x1007995c
xor eax, eax
jmp 0x10079932
mov esi, 0x80070057
mov dword [ebp - 0x18], esi
push dword [ebp - 0x3c]
call sub.msvcrt.dll_free
pop ecx
push 2
xor edi, edi
pop esi
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x1007998b
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1007998b
and dword [ebp + edi*4 - 0x48], 0
inc edi
cmp edi, esi
jb 0x1007996a
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.10039da9
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.10039da9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10039da9
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10039da9
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.10039da9
mov eax, dword [ebp - 0x18]
call fcn.1002c3f5
ret