Function at 0x403f00
Capabilities:
Check for foreground window switch
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x186c
call fcn.00416b20
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x445af4], 0
push ebx
je 0x4042d3
mov ecx, str.Redirecting..
call fcn.00414a00
mov ecx, 0x447328
call fcn.00414a00
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x184c], ax
lea eax, [ebp - 0x184a]
push eax
call fcn.00419170
push 0x800
lea eax, [ebp - 0x804]
mov dword [ebp - 0x1850], 0x3ff
push 0
push eax
call fcn.00419170
add esp, 0x18
lea eax, [ebp - 0x1850]
push 0x30000000
push eax
lea eax, [ebp - 0x184c]
push eax
push 0x447328
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
test eax, eax
js 0x403fe7
push 0x2000
lea eax, [ebp - 0x1850]
mov dword [ebp - 0x1850], 0x3ff
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x184c]
push eax
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
test eax, eax
js 0x403fe7
xor edx, edx
nop word [eax + eax]
movzx eax, word [ebp + edx - 0x804]
lea edx, [edx + 2]
mov word [edx + 0x447326], ax
test ax, ax
jne 0x403fd0
push esi
push edi
mov ecx, 0x447328
call fcn.004042f0
mov ecx, 0x447328
call fcn.00414a00
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x447548]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [0x447548]
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push esi
call fcn.004011d0
mov edi, dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x4040f4
push esi
call fcn.00401110
test eax, eax
jne 0x404051
push esi
call fcn.00401290
test eax, eax
je 0x4040f4
push 0x1c
lea eax, [ebp - 0x186c]
mov dword [ebp - 0x186c], 1
push eax
push 1
mov dword [ebp - 0x1868], 0x12
mov ebx, 0x12
mov dword [ebp - 0x1860], 0
mov dword [ebp - 0x185c], 0
mov dword [ebp - 0x1864], 0
call edi
push 0x1c
lea eax, [ebp - 0x186c]
mov dword [ebp - 0x1864], 0
push eax
mov esi, 0x44
push 1
mov word [ebp - 0x1868], si
call edi
push 0x1c
lea eax, [ebp - 0x186c]
mov word [ebp - 0x1868], si
push eax
push 1
mov dword [ebp - 0x1864], 2
call edi
push 0x1c
lea eax, [ebp - 0x186c]
mov word [ebp - 0x1868], bx
push eax
push 1
mov dword [ebp - 0x1864], 2
call edi
push 0x447328
lea ecx, [ebp - 0x1868]
call fcn.00405900
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
je 0x40417f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x1858]
lea eax, [eax*2 + 2]
push eax
push 0
mov dword [ebp - 0x1850], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40417d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40417d
cmp dword [ebp - 0x1854], 7
lea ecx, [ebp - 0x1868]
push dword [ebp - 0x1850]
cmova ecx, dword [ebp - 0x1868]
push ecx
push eax
call fcn.00417580
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call ebx
mov ecx, dword [ebp - 0x1854]
cmp ecx, 7
jbe 0x4041bf
mov edx, dword [ebp - 0x1868]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4041b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4042e2
push ecx
push edx
call fcn.00415d3b
add esp, 8
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push esi
call fcn.004011d0
test eax, eax
jne 0x404298
push esi
call fcn.00401110
test eax, eax
jne 0x4041f5
push esi
call fcn.00401290
test eax, eax
je 0x404298
push 0x1c
lea eax, [ebp - 0x186c]
mov dword [ebp - 0x186c], 1
push eax
push 1
mov dword [ebp - 0x1868], 0x11
mov dword [ebp - 0x1860], 0
mov dword [ebp - 0x185c], 0
mov dword [ebp - 0x1864], 0
call edi
push 0x1c
lea eax, [ebp - 0x186c]
mov dword [ebp - 0x1864], 0
push eax
mov esi, 0x56
push 1
mov word [ebp - 0x1868], si
call edi
push 0x1c
lea eax, [ebp - 0x186c]
mov word [ebp - 0x1868], si
push eax
push 1
mov dword [ebp - 0x1864], 2
call edi
mov eax, 0x11
mov dword [ebp - 0x1864], 2
mov word [ebp - 0x1868], ax
lea eax, [ebp - 0x186c]
push 0x1c
push eax
push 1
call edi
mov dword [0x447540], 1
mov dword [0x447538], 1
call fcn.00401760
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call ebx
xor eax, eax
pop edi
mov word [0x447328], ax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
call fcn.0041acb4
int3