Function at 0x4662d0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x17], 0
push edi
mov edi, ecx
jne 0x4661a2
mov esi, dword [esi + 0xc]
cmp byte [edi + 0x17], 0
jne 0x4661ab
mov edi, dword [edi + 0xc]
mov al, byte [esi + 0x15]
test al, 0x10
je 0x46622d
test al, 8
jne 0x466212
mov ecx, dword [esi + 8]
movsx edx, byte [ecx]
mov eax, dword [esi + 0xc]
movsx ecx, byte [eax + ecx - 1]
cmp edx, 0x20
je 0x4661e2
cmp edx, 9
je 0x4661e2
cmp ecx, 0x20
je 0x4661e2
cmp ecx, 9
je 0x4661e2
cmp edx, 0x30
je 0x4661e2
cmp edx, 0x2b
jne 0x466212
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
test eax, eax
jne 0x4661f7
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x10
push eax
push ecx
mov eax, edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0x18
push edx
push eax
mov eax, edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
test al, 0x20
je 0x46628d
test al, 8
jne 0x466269
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
test eax, eax
je 0x4661ef
fld qword [esi]
push 0x20
fstp qword [esp + 0xc]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
fld qword [esi]
push 0x28
fstp qword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov eax, edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
test al, 1
je 0x46629f
mov ecx, esi
mov edx, edi
pop edi
pop esi
add esp, 0xc
jmp 0x466670
test al, 2
je 0x4662bb
mov esi, dword [esi]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
push esi
mov eax, edi
call fcn.0044a870
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
pop edi
pop esi
add esp, 0xc
ret
push esi
mov esi, eax
mov eax, dword [esi + 8]
dec eax
cmp eax, 4
ja case.default.0x4662e0
jmp dword [eax*4 + 0x466378]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push edi
call fcn.00411d40
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je case.default.0x4662e0
mov ecx, dword [esi]
cmp byte [ecx], 0x30
je 0x466313
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push edi
call fcn.00411d40
pop esi
ret
push edi
or eax, 0xffffffff
call fcn.004011f0
test eax, eax
jne 0x466322
pop esi
ret
mov esi, dword [esi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0x10
push ecx
push edx
mov eax, edi
call fcn.004010d0
mov eax, 1
pop esi
ret
mov eax, dword [esi]
mov ecx, edi
pop esi
jmp 0x466190
fld qword [esi]
sub esp, 8
fstp qword [esp]
push edi
call fcn.00411d70
pop esi
ret
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
push esi
mov eax, edi
call fcn.0044a870
pop esi
ret
mov ecx, dword [esi]
push edi
or eax, 0xffffffff
call fcn.004011f0
pop esi
ret
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, edx
cmp byte [esi + 0x17], 0
push edi
mov ebx, ecx
jne 0x46668a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 0
je 0x466681
cmp byte [ebx + 0x17], 0
jne 0x466693
mov ebx, dword [ebx + 0xc]
mov eax, ebx
call fcn.00401150
cmp byte [esi + 0x17], 1
jne 0x4666f5
push 1
mov ecx, esi
call fcn.00401230
cmp dword [ebx + 8], eax
je 0x46676e
mov eax, dword [ebx + 0xc]
push 0
push 1
push eax
push 0
mov ecx, esi
call fcn.004668b0
test eax, eax
jne 0x4666cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
inc eax
push eax
push ecx
push edx
call fcn.0047b470
add esp, 0xc
or byte [esi + 0x15], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, 0x4a2bfc
call 0x403f70
test eax, eax
jne 0x46671f
push 0x49588a
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4a2c18
call fcn.00429900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, edi
lea esi, [edi + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
jbe 0x466784
xor esi, esi
cmp dword [0x4a2c14], esi
je 0x46676e
cmp dword [0x4a2c04], esi
je 0x46675c
mov eax, dword [0x4a2bfc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a2c04], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a2c14], esi
mov dword [0x4a2bfc], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov edi, dword [edi]
mov dword [esp + 0x18], edi
test edi, edi
je 0x466738
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x466738
mov ebx, dword [ecx]
mov edi, esi
add esi, ebx
cmp esi, eax
ja 0x466738
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4667f1
test ebx, ebx
je 0x4667d7
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x466848
push ebx
push edi
push eax
call fcn.0047b470
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, esi
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [edi + 4]
cmp esi, dword [esp + 0x14]
jbe 0x466780
jmp 0x466738
cmp dword [0x4a2c14], 0
je 0x46682c
cmp dword [0x4a2c04], 0
je 0x46681a
mov ecx, dword [0x4a2bfc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a2c04], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4a2c14], eax
mov dword [0x4a2bfc], eax
push 0x49588a
push str.Out_of_memory.
mov ecx, 0x4a2c18
call fcn.00429900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4a2c14], esi
je 0x466886
cmp dword [0x4a2c04], esi
je 0x466874
mov edx, dword [0x4a2bfc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a2c04], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a2c14], esi
mov dword [0x4a2bfc], esi
push 0x49588a
push 0x4901f4
mov ecx, 0x4a2c18
call fcn.00429900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret