Function at 0x1007b3b2
Capabilities:
Get geographical location

Disassembly:
push 0x44
mov eax, 0x10037e8e
call fcn.1002ceb7
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
lea ecx, [ebp - 0x40]
mov esi, 0x100a93f8
mov dword [ebp - 0x50], ebx
push esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xe], bl
call fcn.1003a983
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.1003a983
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.1003a983
push 2
pop eax
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], al
call fcn.1003a983
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.1003a983
mov byte [ebp - 4], 4
mov ecx, dword [0x100a9490]
test ecx, ecx
je 0x1007b48f
push 2
lea edx, [ecx + 2]
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x1007b42f
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c1d8
mov ebx, eax
mov dword [ebp - 0x28], eax
pop ecx
test ebx, ebx
jne 0x1007b46a
mov esi, 0x8007000e
mov dword [ebp - 0x14], esi
jmp 0x1007b700
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, esi
mov ecx, ebx
push dword [0x100a9490]
call fcn.100529e2
mov esi, eax
jmp 0x1007b52d
push ebx
push ebx
push 0x1003
push dword [0x100a9498]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov edi, eax
test edi, edi
jne 0x1007b4cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jle 0x1007b4c5
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x14], esi
test esi, esi
js 0x1007b702
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c1d8
mov ebx, eax
mov dword [ebp - 0x28], ebx
pop ecx
test ebx, ebx
je 0x1007b45d
lea eax, [edi + edi]
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push ebx
push 0x1003
push dword [0x100a9498]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1007b538
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jle 0x1007b532
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x14], esi
test esi, esi
js 0x1007b6f9
mov ecx, ebx
call fcn.1003cfc0
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.1003cf00
mov eax, dword [ebp - 0x1c]
xor esi, esi
and dword [ebp - 0x24], 0
xor edi, edi
cmp dword [eax - 0xc], esi
jle 0x1007b5b3
mov ebx, dword [ebp - 0x24]
push edi
lea ecx, [ebp - 0x1c]
call fcn.10079021
movzx ecx, ax
mov eax, ecx
sub eax, 0x20
je 0x1007b5a4
sub eax, 0x28
je 0x1007b5a1
sub eax, 0x20
je 0x1007b59d
sub eax, 5
je 0x1007b598
sub eax, 6
je 0x1007b5a4
sub eax, 1
je 0x1007b592
test bx, bx
jne 0x1007b58f
mov ebx, ecx
inc esi
jmp 0x1007b5a4
mov byte [ebp - 0xe], 1
jmp 0x1007b5a4
mov dword [ebp - 0x4c], esi
jmp 0x1007b5a4
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x1007b55c
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call fcn.1003cfc0
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.1003cf00
lea ecx, [ebp - 0x18]
call fcn.1007b387
mov ecx, eax
call fcn.10062d34
mov ecx, eax
call fcn.10062cd0
xor eax, eax
lea esi, [ebp - 0x48]
and dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], esi
jmp 0x1007b5f0
mov esi, dword [ebp - 0x28]
push eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.1007ab32
mov ecx, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jns 0x1007b608
mov edi, dword [ecx - 0xc]
mov edx, dword [ebp - 0x34]
push esi
push edi
call fcn.10078114
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
js 0x1007b6f9
mov ecx, dword [ebp - 0x38]
lea eax, [edi + 1]
add dword [ebp - 0x28], 4
inc ecx
push 2
pop edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
cmp ecx, edx
jb 0x1007b5ed
xor edi, edi
mov eax, dword [ebp + edi*4 - 0x50]
cmp eax, edx
jae 0x1007b6f1
push dword [ebp + eax*4 - 0x48]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov ecx, edi
sub ecx, 0
je 0x1007b665
sub ecx, 1
jne 0x1007b66c
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0xa], ax
jmp 0x1007b66c
mov ecx, dword [ebp - 0x20]
mov word [ecx + 8], ax
push 2
inc edi
pop edx
cmp edi, edx
jb 0x1007b639
cmp byte [ebp - 0xd], 0
je 0x1007b6f9
cmp byte [ebp - 0xe], 0
je 0x1007b6f9
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.1007b1b5
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
js 0x1007b6f9
mov edi, dword [ebp - 0x3c]
mov ecx, edi
call fcn.1003cfc0
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.1003cf00
push 0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
call fcn.1007ab69
test eax, eax
je 0x1007b6ce
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 8]
cmp eax, 0xc
je 0x1007b6f9
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x1007b6f9
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.1007ab69
test eax, eax
je 0x1007b6f9
mov eax, dword [ebp - 0x20]
cmp word [eax + 8], 0xc
jne 0x1007b6f9
xor ecx, ecx
mov word [eax + 8], cx
jmp 0x1007b6f9
mov esi, 0x80070057
mov dword [ebp - 0x14], esi
push ebx
call sub.msvcrt.dll_free
pop ecx
xor ebx, ebx
push 2
mov edi, ebx
pop esi
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x1007b726
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1007b726
mov dword [ebp + edi*4 - 0x48], ebx
inc edi
cmp edi, esi
jb 0x1007b707
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1003c869
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.1003c869
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1003c869
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1003c869
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.1003c869
mov eax, dword [ebp - 0x14]
call fcn.1002ce85
ret