Function at 0x10096d95
Capabilities:
Get geographical location

Disassembly:
push 0x40
mov eax, 0x10057bd0
call fcn.1003412c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
xorps xmm0, xmm0
xor ebx, ebx
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xe], bl
mov esi, 0x100c6948
mov dword [ebp - 4], ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.100599f4
push 2
pop edi
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.100599f4
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.100599f4
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.100599f4
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.100599f4
mov byte [ebp - 4], 9
mov ecx, dword [0x100c69e8]
test ecx, ecx
je 0x10096e71
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x10096e14
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.10032e06
mov ebx, eax
mov dword [ebp - 0x20], eax
pop ecx
test ebx, ebx
jne 0x10096e4c
mov esi, 0x8007000e
jmp 0x100970cf
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 [0x100c69e8]
call fcn.100628a8
mov esi, eax
jmp 0x10096ef9
push ebx
push ebx
push 0x1003
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov edi, eax
test edi, edi
jne 0x10096ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10096e9c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100970d1
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10032e06
mov ebx, eax
mov dword [ebp - 0x20], ebx
pop ecx
test ebx, ebx
je 0x10096e42
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 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x10096f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10096efb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100970c7
mov ecx, ebx
call fcn.1005c4f9
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.1005c42b
mov eax, dword [ebp - 0x18]
xor esi, esi
and dword [ebp - 0x1c], 0
xor edi, edi
cmp dword [eax - 0xc], esi
jle 0x10096f7c
mov ebx, dword [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x18]
call fcn.10092fb6
movzx ecx, ax
mov eax, ecx
sub eax, 0x20
je 0x10096f6d
sub eax, 0x28
je 0x10096f6a
sub eax, 0x20
je 0x10096f66
sub eax, 5
je 0x10096f61
sub eax, 6
je 0x10096f6d
sub eax, 1
je 0x10096f5b
test bx, bx
jne 0x10096f58
mov ebx, ecx
inc esi
jmp 0x10096f6d
mov byte [ebp - 0xe], 1
jmp 0x10096f6d
mov dword [ebp - 0x48], esi
jmp 0x10096f6d
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x18]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x10096f25
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.1005c4f9
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.1005c42b
lea ecx, [ebp - 0x14]
call fcn.10096d64
mov ecx, eax
call fcn.1007f2f9
mov ecx, eax
call fcn.1007f28f
xor eax, eax
lea esi, [ebp - 0x44]
and dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], esi
jmp 0x10096fb9
mov esi, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.10096a09
mov ecx, dword [ebp - 0x14]
mov edi, eax
test edi, edi
jns 0x10096fd1
mov edi, dword [ecx - 0xc]
mov edx, dword [ebp - 0x34]
push esi
push edi
call fcn.1009200f
mov esi, eax
test esi, esi
js 0x100970c3
mov ecx, dword [ebp - 0x38]
lea eax, [edi + 1]
add dword [ebp - 0x20], 4
inc ecx
push 2
pop edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
cmp ecx, edx
jb 0x10096fb6
xor edi, edi
mov eax, dword [ebp + edi*4 - 0x4c]
cmp eax, edx
jae 0x100970be
push dword [ebp + eax*4 - 0x44]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov ecx, edi
sub ecx, 0
je 0x10097089
sub ecx, 1
je 0x10097099
push 2
inc edi
pop edx
cmp edi, edx
jb 0x10096fff
mov edi, dword [ebp - 0x24]
cmp byte [ebp - 0xd], 0
je 0x100970c3
cmp byte [ebp - 0xe], 0
je 0x100970c3
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.10096b8e
mov esi, eax
test esi, esi
js 0x100970c3
mov ecx, dword [ebp - 0x28]
call fcn.1005c4f9
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
call fcn.1005c42b
push 0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.100959eb
test eax, eax
je 0x100970a2
movzx eax, word [edi + 8]
cmp eax, 0xc
je 0x100970c3
add eax, 0xc
mov word [edi + 8], ax
jmp 0x100970c3
mov ecx, dword [ebp - 0x24]
inc edi
push 2
pop edx
mov word [ecx + 8], ax
jmp 0x10096fff
mov edi, dword [ebp - 0x24]
mov word [edi + 0xa], ax
jmp 0x1009702d
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.100959eb
test eax, eax
je 0x100970c3
cmp word [edi + 8], 0xc
jne 0x100970c3
xor eax, eax
jmp 0x10097083
mov esi, 0x80070057
test ebx, ebx
je 0x100970cf
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor ebx, ebx
push 2
mov edi, ebx
pop eax
mov ebx, dword [ebp + edi*4 - 0x44]
test ebx, ebx
je 0x100970fa
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 2
test eax, eax
pop eax
je 0x100970fa
and dword [ebp + edi*4 - 0x44], 0
inc edi
cmp edi, eax
jb 0x100970d6
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1005bcd8
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.1005bcd8
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1005bcd8
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1005bcd8
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.1005bcd8
mov eax, esi
call fcn.100340e8
ret