Function at 0x10308da0
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 0x1034ff4c
mov eax, dword [ebp + 0xc]
push eax
call sym.tk85.dll_Tk_InternAtom
add esp, 8
cmp dword [ebp + 0x10], eax
jne 0x10308ddb
cmp dword [ebp + 0x14], 0x1f
jne 0x10308ddb
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x10308de0
jmp 0x1030910c
mov dword [ebp - 0xf4], 1
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10308e90
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x10308e1c
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1030910c
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 [0x10351288]
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 [0x10351288]
mov edx, dword [ecx + 0x588]
call edx
add esp, 4
push eax
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [0x10351288]
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 0x10309051
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10309046
push 0x10
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10308f90
push 0x10
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x10308ed2
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1030910c
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x1f0]
call eax
add esp, 4
push 0xffffffffffffffff
push str.cp
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [0x10351288]
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 [0x10351288]
mov ecx, dword [eax + 0x4bc]
call ecx
add esp, 8
mov dword [ebp - 0xec], eax
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x1e8]
call ecx
add esp, 4
jmp 0x10308f9a
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 0x10308fdc
cmp dword [ebp - 0xec], 0
je 0x10308fd1
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x4b4]
call ecx
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1030910c
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 [0x10351288]
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 0x10309044
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x4b4]
call edx
add esp, 4
jmp 0x10309051
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1030910c
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 0x103090c5
mov ecx, dword [ebp - 0xf0]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x1030909e
mov eax, dword [ebp - 0xf0]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x1030909e
mov edx, dword [ebp - 0xf0]
add edx, 1
mov dword [ebp - 0xf0], edx
jmp 0x103090c3
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 0x10309063
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 [0x10351288]
mov edx, dword [ecx + 0x1e8]
call edx
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0xf4]
jmp 0x10309154
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 [0x10351288]
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