Function at 0x402130
Capabilities:
Hide graphical window
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x43c040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
push edi
cmp eax, 0x110
ja 0x402437
je 0x4023a7
add eax, 0xfffffffe
cmp eax, 0xfe
ja case.0x402180.3
movzx eax, byte [eax + 0x40264c]
jmp dword [eax*4 + 0x402638]
mov eax, dword [esi + 4]
lea ebx, [esi + 0xae8]
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [ebx]
test eax, eax
je 0x4021ea
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x28]
mov edx, dword [esp + 0x18]
add eax, eax
movsx ecx, dx
sub ecx, eax
cmp dword [esp + 0x24], ecx
je 0x4021dc
push 6
push 0x46
push ecx
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x18]
inc edi
add ebx, 4
cmp edi, 0x100
jl 0x402196
jmp 0x4021ee
mov edx, dword [esp + 0x18]
imul ebx, dword [esi + 0x2c], 0x46
xor edi, edi
mov ecx, dword [esi + 0x34]
shr edx, 0x10
movsx eax, dx
mov dword [esp + 0x14], eax
mov edx, ebx
sub edx, eax
test edx, edx
cmovle edx, edi
mov edi, dword [esp + 0x10]
cmp ecx, edx
mov dword [esi + 0x38], edx
cmovl edx, ecx
add eax, ecx
mov dword [esi + 0x34], edx
cmp eax, ebx
jle 0x40223e
sub ecx, edx
je 0x40223e
push 7
push 0
push 0
push 0
push 0
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_ScrollWindowEx]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebx - 1]
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x34]
push 1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push 1
push edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
jmp case.0x402180.3
add ecx, 0xffffffdf
cmp ecx, 0xd
ja case.0x402180.3
movzx eax, byte [ecx + 0x402760]
jmp dword [eax*4 + 0x40274c]
mov eax, dword [esi + 0x30]
test eax, eax
jle case.0x402180.3
dec eax
mov ecx, esi
push eax
call fcn.00402030
jmp case.0x402180.3
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
dec eax
cmp ecx, eax
jge case.0x402180.3
lea eax, [ecx + 1]
mov ecx, esi
push eax
call fcn.00402030
jmp case.0x402180.3
push dword [esi + 0x30]
jmp 0x402618
cmp dword [esi + 4], ecx
jne case.0x402180.3
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetSubMenu]
xor edi, edi
mov dword [esp + 0x14], eax
push edi
mov ebx, 3
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40234f
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x402325
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
je 0x40234f
mov ecx, edi
call fcn.00410160
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov eax, 3
test esi, esi
mov esi, dword [esp + 0x10]
cmove ebx, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x30
push eax
push 0
push 0x70a
push dword [esi + 0x10]
mov dword [esp + 0x40], 1
mov dword [esp + 0x48], ebx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push 0
push dword [esi + 4]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x40
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
jmp case.0x402180.3
push dword [esi + 4]
mov ecx, esi
call fcn.00401e30
jmp case.0x402180.3
mov ebx, dword [esi + 4]
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push str.Context
mov edi, eax
push edi
push 0x10
push dword [esi + 0x10]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
call esi
mov ecx, dword [esp + 0x10]
push str.Paste_URL
mov ecx, dword [ecx + 0x14]
call fcn.00411640
push eax
push 0x70a
push 0
push edi
call esi
mov eax, dword [esp + 0x10]
push 4
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0x3e8
push 0x14
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x136
ja 0x402601
je 0x4025e5
sub eax, 0x111
je 0x402591
sub eax, 2
je 0x40247c
sub eax, 2
jne case.0x402180.3
mov eax, ecx
shr eax, 0x10
cwde
push eax
movzx eax, cx
push eax
push ecx
push dword [esi + 4]
mov ecx, esi
call fcn.00401c90
jmp case.0x402180.3
cmp ecx, 0x14
jne case.0x402180.3
xor edx, edx
lea edi, [esi + 0xae8]
xor eax, eax
mov dword [esp + 0x1c], edx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor esi, esi
nop dword [eax + eax]
mov eax, dword [edi]
test eax, eax
je 0x402501
cmp dword [eax + 0x88], 3
jne 0x4024f5
cmp word [eax + 0x1330], 0
lea ecx, [eax + 0x1330]
je 0x4024d2
push ecx
push 0x321
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
inc dword [esp + 0x18]
mov ecx, dword [eax + 0xa368]
cmp ecx, 0x64
lea eax, [ecx + esi]
cmova eax, esi
mov esi, eax
lea eax, [edx + 0x64]
cmova eax, edx
mov edx, eax
mov dword [esp + 0x1c], edx
inc ebx
add edi, 4
cmp ebx, 0x100
jl 0x4024a0
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je case.0x402180.3
cmp dword [esp + 0x18], 0
je 0x40256a
mov eax, dword [ecx]
mov edi, dword [esi + 8]
mov eax, dword [eax + 0x28]
test edx, edx
je 0x402555
push 2
push edi
push ecx
call eax
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x14]
push 0
push dword [esp + 0x20]
mov ecx, dword [eax]
push 0
push edx
push dword [esi + 8]
push eax
call dword [ecx + 0x24]
mov dword [0x43d5d8], 1
jmp case.0x402180.3
push 1
push edi
push ecx
call eax
mov dword [0x43d5d8], 1
jmp case.0x402180.3
cmp dword [0x43d5d8], 0
je case.0x402180.3
mov eax, dword [ecx]
push 0
push dword [esi + 8]
push ecx
call dword [eax + 0x28]
mov dword [0x43d5d8], 0
jmp case.0x402180.3
mov eax, 0x70a
cmp cx, ax
jne case.0x402180.3
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x402180.3
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x4025c1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
je case.0x402180.3
push edi
push 0
push 0x800a
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp case.0x402180.3
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 0xc
sub eax, 0x8001
je 0x402617
sub eax, 1
jne case.0x402180.3
push ecx
mov ecx, esi
call fcn.00402030
jmp case.0x402180.3
push ecx
mov ecx, esi
call fcn.004018b0
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 0xc