Function at 0x10309a40
Capabilities:
Get geographical location
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x1035006c
mov eax, dword [ebp + 0xc]
push eax
call sym.tk85.dll_Tk_InternAtom
add esp, 8
cmp dword [ebp + 0x10], eax
jne 0x10309a7b
cmp dword [ebp + 0x14], 0x1f
jne 0x10309a7b
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x10309a80
jmp 0x10309dac
mov dword [ebp - 0xf4], 1
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10309b30
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x10309abc
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10309dac
mov ecx, dword [ebp - 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xf0], eax
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [0x103513c8]
mov ecx, dword [eax + 0x1f0]
call ecx
add esp, 4
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [0x103513c8]
mov edx, dword [ecx + 0x588]
call edx
add esp, 4
push eax
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [0x103513c8]
mov edx, dword [ecx + 0x590]
call edx
add esp, 0xc
mov eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10309cf1
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10309ce6
push 0x10
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10309c30
push 0x10
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x10309b72
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10309dac
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x1f0]
call eax
add esp, 4
push 0xffffffffffffffff
push str.cp
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x1dc]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
movzx eax, word [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xe4]
sub ecx, 2
push ecx
mov edx, dword [ebp - 0xe8]
add edx, 2
push edx
push 0x1004
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [ebp - 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xe8]
push edx
push 0
mov eax, dword [0x103513c8]
mov ecx, dword [eax + 0x4bc]
call ecx
add esp, 8
mov dword [ebp - 0xec], eax
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [0x103513c8]
mov ecx, dword [eax + 0x1e8]
call ecx
add esp, 4
jmp 0x10309c3a
mov dword [ebp - 0xec], 0
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x10309c7c
cmp dword [ebp - 0xec], 0
je 0x10309c71
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [0x103513c8]
mov ecx, dword [eax + 0x4b4]
call ecx
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10309dac
mov edx, dword [ebp - 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xe8]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [0x103513c8]
mov ecx, dword [eax + 0x4a8]
call ecx
add esp, 0x10
mov edx, dword [ebp - 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xec], 0
je 0x10309ce4
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [0x103513c8]
mov edx, dword [ecx + 0x4b4]
call edx
add esp, 4
jmp 0x10309cf1
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10309dac
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xf0]
movsx eax, byte [edx]
test eax, eax
je 0x10309d65
mov ecx, dword [ebp - 0xf0]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x10309d3e
mov eax, dword [ebp - 0xf0]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x10309d3e
mov edx, dword [ebp - 0xf0]
add edx, 1
mov dword [ebp - 0xf0], edx
jmp 0x10309d63
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xf0]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xf0]
add ecx, 1
mov dword [ebp - 0xf0], ecx
jmp 0x10309d03
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [0x103513c8]
mov edx, dword [ecx + 0x1e8]
call edx
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0xf4]
jmp 0x10309df4
push 0
push str.__not_defined
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sym.tk85.dll_Tk_GetAtomName
add esp, 8
push eax
push str._selection_doesnt_exist_or_form__
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.tk85.dll_Tk_GetAtomName
add esp, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x120]
call eax
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret