Function at 0x660ec45c
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 [0x6610feb0]
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 0x660ec4a3
cmp eax, edi
je 0x660ec4a3
cmp eax, 2
je 0x660ec49c
push eax
call fcn.660dfc50
test eax, eax
jne 0x660ec4ab
push 5
call fcn.66025592
call fcn.660106d9
mov dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jl 0x660ec4ba
cmp ebx, 0xff
jle 0x660ec4c1
push 5
call fcn.66025592
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 0x660ec512
mov edx, dword [eax + 8]
cmp dword [edx], ecx
jne 0x660ec512
lea eax, [ebp - 0x48]
mov word [ebp - 0x28], 8
push eax
lea eax, [ebp - 0x28]
push 8
push eax
push esi
call fcn.660e58e5
mov word [ebp - 0x28], di
cmp eax, 0x800a005e
jne 0x660ec521
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.660e58e5
jmp 0x660ec4f8
test eax, eax
jge 0x660ec52f
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.6601d62b
test ebx, 0xffffff3f
je 0x660ec543
test bl, 0xc0
je 0x660ec543
push 5
call fcn.66025592
mov eax, ebx
and eax, 0xc0
sub eax, 0x40
je 0x660ec5a6
sub eax, 0x40
je 0x660ec564
sub eax, 0x40
jne 0x660ec5dd
push 5
call fcn.66025592
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 0x660ec583
push 5
call fcn.66025592
lea eax, [ebp - 0x18]
push eax
call fcn.6600ee48
pop ecx
lea edx, [ebp - 0x20]
mov ecx, dword [esi + 8]
push eax
call fcn.6601b346
push eax
call fcn.66024c30
test eax, eax
je 0x660ec5dd
push eax
jmp 0x660ec55f
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 0x660ec5c5
push 5
call fcn.66025592
lea eax, [ebp - 0x18]
push eax
call fcn.6600ee48
pop ecx
lea edx, [ebp - 0x20]
mov ecx, dword [esi + 8]
push eax
call fcn.660dfb15
jmp 0x660ec599
mov eax, ebx
and eax, 3
mov dword [ebp - 0x10], eax
sub eax, 0
je 0x660ec5f7
dec eax
je 0x660ec618
dec eax
jne 0x660ec5f7
mov dword [ebp - 4], 0x100
mov dword [ebp + 0xc], ebx
mov edi, 0x3ff
and dword [ebp + 0xc], 0x30
je 0x660ec621
mov eax, dword [ebp + 0x14]
and ax, di
cmp ax, 0x11
je 0x660ec621
push 5
call fcn.66025592
mov dword [ebp - 4], 0x200
jmp 0x660ec5f7
mov dword [ebp + 0x10], ebx
and dword [ebp + 0x10], 0xc
je 0x660ec6c5
mov ecx, dword [ebp + 0x14]
and ecx, edi
cmp cx, 0x11
jne 0x660ec646
cmp dword [0x6610fec4], 0
jne 0x660ec6c5
cmp cx, 0x12
jne 0x660ec655
cmp dword [0x6610fec8], 0
jne 0x660ec6c5
cmp cx, 4
mov eax, 0xfffffc00
mov edx, 0x400
jne 0x660ec678
movzx edi, word [ebp + 0x14]
and edi, eax
cmp edi, edx
jne 0x660ec678
cmp dword [0x6610fecc], 0
jne 0x660ec6c5
mov ebx, dword [0x6610fec0]
cmp cx, 4
mov edi, 0x800
jne 0x660ec69a
movzx esi, word [ebp + 0x14]
and esi, eax
cmp esi, edi
jne 0x660ec697
test ebx, ebx
jne 0x660ec6c2
mov esi, dword [ebp - 0xc]
cmp cx, 4
jne 0x660ec6bb
movzx ecx, word [ebp + 0x14]
and ecx, eax
cmp ecx, edx
je 0x660ec6bb
cmp ecx, edi
je 0x660ec6bb
cmp dword [0x6610fecc], 0
jne 0x660ec6c5
test ebx, ebx
jne 0x660ec6c5
push 5
call fcn.66025592
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
je 0x660ec6e8
cmp eax, 4
je 0x660ec70d
cmp eax, 8
je 0x660ec6e4
cmp eax, 0xc
jne 0x660ec6e8
push 5
call fcn.66025592
or byte [ebp - 2], 0x40
cmp dword [0x6610fec4], edi
je 0x660ec717
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x660ec717
cmp eax, 0x10
je 0x660ec74c
cmp eax, 0x20
je 0x660ec713
cmp eax, 0x30
jne 0x660ec717
push 5
call fcn.66025592
or byte [ebp - 2], 0x80
jmp 0x660ec6e8
or byte [ebp - 2], 0x10
cmp dword [ebp - 0x10], 3
jne 0x660ec752
push dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call 0x660ec79d
mov dword [ebp - 8], eax
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
cmp dword [ebp - 8], edi
jne 0x660ec787
mov word [ebp - 0x28], 8
lea esi, [ebp - 0x28]
jmp 0x660ec502
or byte [ebp - 2], 0x20
jmp 0x660ec717
cmp dword [ebp - 4], edi
je 0x660ec76b
push dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call fcn.660ec83d
jmp 0x660ec72f
cmp dword [ebp - 0x20], edi
jne 0x660ec732
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x660ec732
push 7
call fcn.66025592
cmp dword [ebp - 0x20], edi
je 0x660ec795
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 8]
call fcn.66025592
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.660ec83d
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x660ec82f
mov esi, dword [esi]
test esi, esi
je 0x660ec7cc
mov eax, dword [esi - 4]
shr eax, 1
mov ecx, eax
dec eax
test ecx, ecx
je 0x660ec82f
inc eax
mov dword [ebp + 0x14], eax
mov ax, word [esi]
cmp ax, 0x20
mov dword [ebp + 0x10], eax
je 0x660ec838
cmp ax, 0x3000
je 0x660ec838
test ax, ax
je 0x660ec838
cmp ax, 9
je 0x660ec838
cmp ax, 0xa
je 0x660ec838
cmp ax, 0xb
je 0x660ec838
cmp ax, 0xc
je 0x660ec838
cmp ax, 0xd
je 0x660ec838
test ebx, ebx
je 0x660ec828
push 1
push esi
lea eax, [ebp + 0x10]
push 1
push eax
push 0x200
push dword [ebp + 8]
call fcn.660e5e72
xor ebx, ebx
inc esi
inc esi
dec dword [ebp + 0x14]
jne 0x660ec7d7
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret 0x10
push 1
pop ebx
jmp 0x660ec828