Function at 0x660eaea8
Capabilities:
Get geographical location
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
mov eax, dword [ebp + 0x14]
push 1
mov dword [ebp - 0xc], esi
test eax, eax
pop edi
je 0x660eaeef
cmp eax, edi
je 0x660eaeef
cmp eax, 2
je 0x660eaee8
push eax
call fcn.660de79d
test eax, eax
jne 0x660eaef7
push 5
call fcn.66024fdc
call fcn.66010656
mov dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jl 0x660eaf06
cmp ebx, 0xff
jle 0x660eaf0d
push 5
call fcn.66024fdc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov word [esi], cx
mov word [ebp - 0x28], di
cmp word [eax], 0x6011
mov dword [ebp - 0x20], ecx
jne 0x660eaf5e
mov edx, dword [eax + 8]
cmp dword [edx], ecx
jne 0x660eaf5e
lea eax, [ebp - 0x48]
mov word [ebp - 0x28], 8
push eax
lea eax, [ebp - 0x28]
push 8
push eax
push esi
call fcn.660e4425
mov word [ebp - 0x28], di
cmp eax, 0x800a005e
jne 0x660eaf6d
mov word [esi], di
mov eax, dword [ebp + 8]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret 0x10
lea ecx, [ebp - 0x48]
push ecx
push 8
push eax
push esi
call fcn.660e4425
jmp 0x660eaf44
test eax, eax
jge 0x660eaf7b
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.6601d35f
test ebx, 0xffffff3f
je 0x660eaf8f
test bl, 0xc0
je 0x660eaf8f
push 5
call fcn.66024fdc
mov eax, ebx
and eax, 0xc0
sub eax, 0x40
je 0x660eaff2
sub eax, 0x40
je 0x660eafb0
sub eax, 0x40
jne 0x660eb029
push 5
call fcn.66024fdc
lea eax, [ebp - 0x18]
push 6
push eax
push 0x1004
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x660eafcf
push 5
call fcn.66024fdc
lea eax, [ebp - 0x18]
push eax
call fcn.6600edc5
pop ecx
lea edx, [ebp - 0x20]
mov ecx, dword [esi + 8]
push eax
call fcn.6601b126
push eax
call fcn.6602467a
test eax, eax
je 0x660eb029
push eax
jmp 0x660eafab
lea eax, [ebp - 0x18]
push 6
push eax
push 0x1004
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x660eb011
push 5
call fcn.66024fdc
lea eax, [ebp - 0x18]
push eax
call fcn.6600edc5
pop ecx
lea edx, [ebp - 0x20]
mov ecx, dword [esi + 8]
push eax
call fcn.660de662
jmp 0x660eafe5
mov eax, ebx
and eax, 3
mov dword [ebp - 0x10], eax
sub eax, 0
je 0x660eb043
dec eax
je 0x660eb064
dec eax
jne 0x660eb043
mov dword [ebp - 4], 0x100
mov dword [ebp + 0xc], ebx
mov edi, 0x3ff
and dword [ebp + 0xc], 0x30
je 0x660eb06d
mov eax, dword [ebp + 0x14]
and ax, di
cmp ax, 0x11
je 0x660eb06d
push 5
call fcn.66024fdc
mov dword [ebp - 4], 0x200
jmp 0x660eb043
mov dword [ebp + 0x10], ebx
and dword [ebp + 0x10], 0xc
je 0x660eb111
mov ecx, dword [ebp + 0x14]
and ecx, edi
cmp cx, 0x11
jne 0x660eb092
cmp dword [0x6610eeac], 0
jne 0x660eb111
cmp cx, 0x12
jne 0x660eb0a1
cmp dword [0x6610eeb0], 0
jne 0x660eb111
cmp cx, 4
mov eax, 0xfffffc00
mov edx, 0x400
jne 0x660eb0c4
movzx edi, word [ebp + 0x14]
and edi, eax
cmp edi, edx
jne 0x660eb0c4
cmp dword [0x6610eeb4], 0
jne 0x660eb111
mov ebx, dword [0x6610eea8]
cmp cx, 4
mov edi, 0x800
jne 0x660eb0e6
movzx esi, word [ebp + 0x14]
and esi, eax
cmp esi, edi
jne 0x660eb0e3
test ebx, ebx
jne 0x660eb10e
mov esi, dword [ebp - 0xc]
cmp cx, 4
jne 0x660eb107
movzx ecx, word [ebp + 0x14]
and ecx, eax
cmp ecx, edx
je 0x660eb107
cmp ecx, edi
je 0x660eb107
cmp dword [0x6610eeb4], 0
jne 0x660eb111
test ebx, ebx
jne 0x660eb111
push 5
call fcn.66024fdc
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
je 0x660eb134
cmp eax, 4
je 0x660eb159
cmp eax, 8
je 0x660eb130
cmp eax, 0xc
jne 0x660eb134
push 5
call fcn.66024fdc
or byte [ebp - 2], 0x40
cmp dword [0x6610eeac], edi
je 0x660eb163
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x660eb163
cmp eax, 0x10
je 0x660eb198
cmp eax, 0x20
je 0x660eb15f
cmp eax, 0x30
jne 0x660eb163
push 5
call fcn.66024fdc
or byte [ebp - 2], 0x80
jmp 0x660eb134
or byte [ebp - 2], 0x10
cmp dword [ebp - 0x10], 3
jne 0x660eb19e
push dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call 0x660eb1e9
mov dword [ebp - 8], eax
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
cmp dword [ebp - 8], edi
jne 0x660eb1d3
mov word [ebp - 0x28], 8
lea esi, [ebp - 0x28]
jmp 0x660eaf4e
or byte [ebp - 2], 0x20
jmp 0x660eb163
cmp dword [ebp - 4], edi
je 0x660eb1b7
push dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call fcn.660eb289
jmp 0x660eb17b
cmp dword [ebp - 0x20], edi
jne 0x660eb17e
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x660eb17e
push 7
call fcn.66024fdc
cmp dword [ebp - 0x20], edi
je 0x660eb1e1
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 8]
call fcn.66024fdc
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 1
pop ebx
push dword [ebp + 0x14]
or ah, bl
push esi
push eax
push dword [ebp + 8]
call fcn.660eb289
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x660eb27b
mov esi, dword [esi]
test esi, esi
je 0x660eb218
mov eax, dword [esi - 4]
shr eax, 1
mov ecx, eax
dec eax
test ecx, ecx
je 0x660eb27b
inc eax
mov dword [ebp + 0x14], eax
mov ax, word [esi]
cmp ax, 0x20
mov dword [ebp + 0x10], eax
je 0x660eb284
cmp ax, 0x3000
je 0x660eb284
test ax, ax
je 0x660eb284
cmp ax, 9
je 0x660eb284
cmp ax, 0xa
je 0x660eb284
cmp ax, 0xb
je 0x660eb284
cmp ax, 0xc
je 0x660eb284
cmp ax, 0xd
je 0x660eb284
test ebx, ebx
je 0x660eb274
push 1
push esi
lea eax, [ebp + 0x10]
push 1
push eax
push 0x200
push dword [ebp + 8]
call fcn.660e49b2
xor ebx, ebx
inc esi
inc esi
dec dword [ebp + 0x14]
jne 0x660eb223
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret 0x10
push 1
pop ebx
jmp 0x660eb274