Function at 0x45aafd
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4babb1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45ae38
mov eax, dword [ebx + 0x2a0]
mov ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], 1
call fcn.00411d5c
and dword [esp + 0x58], 0
lea ecx, [ebx + 0x238]
call main
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test al, al
je 0x45ab9a
movzx eax, word [ebx + 0x103a]
push eax
call esi
test eax, eax
jne 0x45ab93
movzx eax, word [ebx + 0x103c]
push eax
call esi
test eax, eax
je 0x45ab9a
mov byte [esp + 0x13], 1
jmp 0x45ab9f
mov byte [esp + 0x13], 0
cmp dword [ebx + 0xdd0], 1
mov ecx, ebx
sete al
movzx eax, al
push eax
call fcn.0041b3ef
movzx eax, word [ebx + 0x1036]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x45ac1e
movzx eax, word [ebx + 0x1038]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x45ac10
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x45ac10
push esi
call dword [sym.imp.kernel32.dll_GlobalSize]
cmp eax, 1
jne 0x45abfd
cmp byte [edi], 2
mov byte [esp + 0x12], al
je 0x45ac02
mov byte [esp + 0x12], 0
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
cmp byte [esp + 0x12], 0
jne 0x45ac1e
movzx esi, byte [esp + 0x13]
neg esi
sbb esi, esi
and esi, 2
jmp 0x45ac21
xor esi, esi
inc esi
push 0xd
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x45ad18
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov dword [esp + 0x14], eax
test eax, eax
je 0x45ad18
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, ebx
mov byte [esp + 0x58], 1
call fcn.00422dd7
test al, al
je 0x45aca5
push edi
call dword [sym.imp.kernel32.dll_GlobalSize]
mov ecx, dword [esp + 0x14]
mov esi, eax
shr esi, 1
mov edx, esi
call fcn.00488fc0
mov edi, eax
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x38]
call main
mov ecx, dword [esp + 0x14]
mov edx, esi
push edi
push dword [esp + 0x38]
call main
pop ecx
pop ecx
jmp 0x45acf1
mov ecx, ebx
call fcn.00458e13
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push eax
push ebx
call edi
dec eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea esi, [eax + 1]
push esi
call main
xor eax, eax
push eax
push eax
push esi
push dword [esp + 0x40]
push 0xffffffffffffffff
push dword [esp + 0x28]
push eax
push ebx
call edi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push dword [esp + 0x18]
mov ecx, ebx
push edi
push dword [esp + 0x3c]
call main
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call fcn.004028f1
push dword [esp + 0x24]
jmp 0x45ae17
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x45ae1d
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov dword [esp + 0x14], eax
test eax, eax
je 0x45ae1d
push edi
call dword [sym.imp.kernel32.dll_GlobalSize]
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x20], edx
test eax, eax
je 0x45ad71
mov ebx, dword [esp + 0x14]
cmp edx, eax
jne 0x45ad64
cmp byte [ecx + ebx], 0
jne 0x45ad64
mov edx, ecx
inc ecx
cmp ecx, eax
jb 0x45ad58
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov ecx, ebx
call fcn.00422dd7
test al, al
je 0x45ae09
lea esi, [edx + 1]
push esi
lea ecx, [esp + 0x38]
call main
push esi
mov byte [esp + 0x5c], 2
push dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x20]
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov edx, esi
call fcn.00488fc0
mov edi, eax
lea ecx, [esp + 0x40]
lea edx, [edi + 1]
push edx
call main
mov byte [esp + 0x58], 3
mov edx, esi
mov ecx, dword [esp + 0x34]
push edi
push dword [esp + 0x44]
call main
pop ecx
pop ecx
push dword [esp + 0x18]
mov ecx, ebx
push edi
push dword [esp + 0x48]
call main
lea ecx, [esp + 0x40]
call fcn.004028f1
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call fcn.004028f1
mov edi, dword [esp + 0x24]
jmp 0x45ae16
push esi
push edx
push dword [esp + 0x1c]
mov ecx, ebx
call main
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
or dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x28]
call fcn.00411dbb
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret