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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x10021777
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffe8
jl 0x100217b0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x30], 0
jmp 0x10021794
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
je 0x100217ae
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x100217ac
call dword [sym.imp.USER32.dll_CreateMenu]
jmp 0x1002178d
jmp 0x10021770
cmp dword [ebp - 4], 0
jne 0x10021801
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 4]
jg 0x100217ca
mov dword [ebp - 0x74], 1
jmp 0x100217ce
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 4]
jle 0x100217e5
mov dword [ebp - 0xcc], 1
jmp 0x100217ec
and dword [ebp - 0xcc], 0
cmp dword [ebp - 4], 0
jne 0x10021801
cmp dword [ebp - 4], 0
jne 0x10021801
and dword [ebp - 0xac], 0
jmp 0x1002180b
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0xac]
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002182e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x10021e35
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x40], 0
jmp 0x10021855
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x10021868
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x2c], 0x9e57ad95
jmp 0x1002184e
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 8], 0
jmp 0x1002187f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jg 0x10021b24
mov dword [ebp - 0x14], 0x4438bea1
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x44], 0
jmp 0x100218a7
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x100218ba
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x24], 5
jmp 0x100218a0
mov dword [ebp - 0x14], 0
jmp 0x100218ca
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jg 0x100219a1
mov dword [ebp - 0x10], 0x41b66baf
mov dword [ebp - 0x10], 1
jmp 0x100218eb
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1002191c
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1002190e
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x2c], 0
je 0x1002191a
jmp 0x1002191c
jmp 0x100218e4
mov dword [ebp - 0x10], 0
jmp 0x1002192c
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jg 0x1002199c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ebp + ecx*4 - 0x2c]
cmp dword [ebp + eax*4 - 0x2c], ecx
jne 0x10021987
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp + ecx*4 - 0x2c]
push 4
pop edx
shl edx, 0
add ecx, dword [ebp + edx - 0x2c]
imul ecx, ecx, 0xfffd
cmp dword [ebp + eax - 0x2c], ecx
jg 0x1002196e
mov dword [ebp - 0x54], 1
jmp 0x10021972
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10021987
and dword [ebp - 0xb8], 0
jmp 0x10021991
mov dword [ebp - 0xb8], 1
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x48], eax
jmp 0x10021925
jmp 0x100218c3
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x24], 0
jne 0x10021af0
push 0xfffffffffffffffa
pop eax
test eax, eax
je 0x10021ae7
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0x48], 0
jne 0x100219e2
cmp dword [ebp - 8], 0
jne 0x100219e2
and dword [ebp - 0xe0], 0
jmp 0x100219ec
mov dword [ebp - 0xe0], 1
mov eax, 0xcc33bab7
test eax, eax
jb 0x100219fe
mov dword [ebp - 0x5c], 1
jmp 0x10021a02
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x5c]
test eax, eax
je 0x10021a1f
cmp dword [ebp - 0x14], 0
je 0x10021a1f
mov dword [ebp - 0xa4], 1
jmp 0x10021a26
and dword [ebp - 0xa4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x24]
cmp dword [ebp - 0xa4], eax
je 0x10021a41
mov dword [ebp - 0x64], 1
jmp 0x10021a45
and dword [ebp - 0x64], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp dword [ebp - 0x64], eax
jl 0x10021a6a
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x2c], 0
jne 0x10021a6a
and dword [ebp - 0xc0], 0
jmp 0x10021a74
mov dword [ebp - 0xc0], 1
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x3c], eax
jge 0x10021a98
mov dword [ebp - 0x6c], 1
jmp 0x10021a9c
and dword [ebp - 0x6c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp + eax - 0x24]
push 4
pop eax
imul eax, eax, 0
cmp ecx, dword [ebp + eax - 0x24]
jle 0x10021ac1
mov dword [ebp - 0xc8], 1
jmp 0x10021ac8
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0xfffffffb
jg 0x10021ada
mov dword [ebp - 0x4c], 1
jmp 0x10021ade
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0xd9de360a
je 0x10021af0
and dword [ebp - 0xbc], 0
jmp 0x10021afa
mov dword [ebp - 0xbc], 1
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x24]
cmp dword [ebp - 0xbc], eax
jge 0x10021b15
mov dword [ebp - 0x7c], 1
jmp 0x10021b19
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
jmp 0x10021878
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
movzx eax, byte [eax]
test eax, eax
je 0x10021b45
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0xa8], 0xcbbbc25
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xd0], 0x8607
mov dword [ebp - 0xd8], 0xf4846e1d
mov dword [ebp - 0x1c], 0
jmp 0x10021b84
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffea
jne 0x10021e35
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xdc], 0x6e85fcb
mov dword [ebp - 0xc], 0
jmp 0x10021baf
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 6
jl 0x10021bed
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x10021bce
push 0
push 0x250d
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 0x18], 0
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x10021beb
push 0x251
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x10021ba8
mov dword [ebp - 0xc], 9
jmp 0x10021bfd
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jg 0x10021e30
mov dword [ebp - 0x34], 0x272a727
mov dword [ebp - 0x84], 4
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x38], 0x70fc
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10021c3d
push 0
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x34], 0xffffffeb
jmp 0x10021c4d
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffffb
jl 0x10021e2b
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x50], 0x2305aba9
cmp dword [ebp - 0x84], 0x1ec2
jne 0x10021d5c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
neg eax
cmp dword [ebp - 0x84], eax
jne 0x10021c9d
mov dword [ebp - 0xc4], 1
jmp 0x10021ca4
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xdc]
cmp dword [ebp - 0xc4], eax
jle 0x10021cbe
mov dword [ebp - 0x8c], 1
jmp 0x10021cc5
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x94], eax
jge 0x10021cfb
cmp dword [ebp - 0x38], 0
jne 0x10021cfb
and dword [ebp - 0xb0], 0
jmp 0x10021d05
mov dword [ebp - 0xb0], 1
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x10021d2c
cmp dword [ebp - 0xd0], 0
je 0x10021d2c
mov dword [ebp - 0x58], 1
jmp 0x10021d30
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x58], eax
jge 0x10021d41
mov dword [ebp - 0x60], 1
jmp 0x10021d45
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x60], eax
jl 0x10021d5c
cmp dword [ebp - 0x1c], 0
je 0x10021d5c
mov dword [ebp - 0x68], 1
jmp 0x10021d60
and dword [ebp - 0x68], 0
mov eax, 0xf57a5575
test eax, eax
jne 0x10021d78
mov eax, 0xc437ffe
test eax, eax
jne 0x10021d78
and dword [ebp - 0x70], 0
jmp 0x10021d7f
mov dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0xffffffff
jge 0x10021d8e
mov dword [ebp - 0x78], 1
jmp 0x10021d92
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x78], eax
jle 0x10021da3
mov dword [ebp - 0x80], 1
jmp 0x10021da7
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0xfffffff6
jg 0x10021db9
mov dword [ebp - 0x88], 1
jmp 0x10021dc0
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x88], eax
jne 0x10021dd7
mov dword [ebp - 0x90], 1
jmp 0x10021dde
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x90], eax
jne 0x10021df5
mov dword [ebp - 0x98], 1
jmp 0x10021dfc
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x98], eax
jg 0x10021e13
mov dword [ebp - 0xa0], 1
jmp 0x10021e1a
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xd8], eax
jmp 0x10021c46
jmp 0x10021bf6
jmp 0x10021b7d
mov esp, ebp
pop ebp
ret