Function at 0x471cd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543516
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x140], esi
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x134], ebx
cmp ebx, ecx
jb 0x471d2e
ja 0x471d28
cmp edx, eax
jbe 0x471d2e
mov edi, eax
mov ebx, ecx
jmp 0x471d30
mov edi, edx
cmp dword [ebp - 0x134], ecx
jb 0x471d46
ja 0x471d3e
cmp edx, eax
jbe 0x471d46
mov eax, dword [ebp - 0x134]
jmp 0x471d56
mov edx, eax
mov dword [ebp - 0x148], eax
mov eax, ecx
mov dword [ebp - 0x134], eax
cmp ebx, eax
jb 0x471d68
ja 0x4721b0
cmp edi, edx
jae 0x4721b0
mov ecx, edx
sub ecx, edi
sbb eax, ebx
mov dword [ebp - 0x150], eax
jne 0x4721b0
cmp ecx, 0x10000
ja 0x4721b0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov dword [ebp - 0x170], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 1
push dword [esi + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4721a4
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x471dda
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
sub eax, edi
mov byte [ebp - 4], 1
shl eax, 2
push eax
call fcn.00471a10
mov esi, dword [ebp - 0x144]
cmp dword [esi - 8], 0
jl 0x4721d0
push 0x100
lea eax, [ebp - 0x130]
mov dword [esi - 0xc], 0
push 0
push eax
mov byte [esi], 0
call fcn.0051d400
mov edx, dword [ebp - 0x140]
add esp, 0xc
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov eax, dword [edx + 0x5c]
mov ecx, dword [edx + 0x58]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], eax
cmp eax, dword [edx + 0x7c]
ja 0x472127
jb 0x471e80
cmp ecx, dword [edx + 0x78]
jae 0x472127
nop word [eax + eax]
cmp eax, dword [ebp - 0x134]
ja 0x472121
jb 0x471e9a
cmp ecx, dword [ebp - 0x148]
jae 0x472121
push dword [edx + 0xd0]
mov eax, dword [edx + 0x24]
lea ecx, [edx + 0x24]
push dword [edx + 0x28]
lea edx, [ebp - 0x130]
push edx
push dword [ebp - 0x15c]
push dword [ebp - 0x158]
call dword [eax]
test eax, eax
jle 0x4720e1
mov ecx, dword [ebp - 0x140]
mov eax, dword [ecx + 0x84]
cmp eax, 3
je 0x471fd1
cmp eax, 2
je 0x471fd1
cmp eax, 4
jne 0x4720e1
mov eax, dword [ecx + 0x28]
mov esi, edi
cdq
mov dword [ebp - 0x14c], ebx
cmp ebx, edx
ja 0x4720e1
jb 0x471f0b
cmp edi, eax
jae 0x4720e1
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
cmp dword [ebp - 0x13c], eax
ja 0x4720e1
jb 0x471f31
cmp ecx, dword [ebp - 0x148]
ja 0x4720e1
mov bl, byte [ebp + esi - 0x130]
movsx eax, bl
push eax
call fcn.0052be74
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
lea ecx, [ebp - 0x144]
mov byte [ebp - 0x160], dl
push dword [ebp - 0x160]
call fcn.00470b90
mov ecx, dword [ebp - 0x138]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x140]
add ecx, 1
mov ebx, dword [ebp - 0x14c]
adc dword [ebp - 0x13c], 0
add esi, 1
movlpd qword [ebp - 0x154], xmm0
mov eax, dword [eax + 0x28]
adc ebx, 0
cdq
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x14c], ebx
cmp ebx, edx
jb 0x471fc0
ja 0x4720d5
cmp esi, eax
jae 0x4720d5
nop word [eax + eax]
mov ebx, dword [ebp - 0x150]
mov edi, dword [ebp - 0x154]
jmp 0x471f11
mov eax, dword [ecx + 0x28]
mov esi, edi
cdq
mov dword [ebp - 0x14c], ebx
cmp ebx, edx
ja 0x4720e1
jb 0x471fef
cmp edi, eax
jae 0x4720e1
mov ecx, dword [ebp - 0x138]
nop word [eax + eax]
mov eax, dword [ebp - 0x134]
cmp dword [ebp - 0x13c], eax
ja 0x4720e1
jb 0x472020
cmp ecx, dword [ebp - 0x148]
ja 0x4720e1
movzx eax, byte [ebp + esi - 0x130]
push eax
lea eax, [ebp - 0x30]
push 0x55049c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472041
sub eax, edx
lea ecx, [ebp - 0x144]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00423f00
mov eax, dword [ebp - 0x164]
inc eax
mov dword [ebp - 0x164], eax
test al, 0xf
jne 0x47207d
push 2
push 0x5504b0
lea ecx, [ebp - 0x144]
call fcn.00423f00
mov ecx, dword [ebp - 0x138]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x140]
add ecx, 1
mov ebx, dword [ebp - 0x14c]
adc dword [ebp - 0x13c], 0
add esi, 1
movlpd qword [ebp - 0x154], xmm0
mov eax, dword [eax + 0x28]
adc ebx, 0
cdq
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x14c], ebx
cmp ebx, edx
jb 0x4720c4
ja 0x4720d5
cmp esi, eax
jae 0x4720d5
mov ebx, dword [ebp - 0x150]
mov edi, dword [ebp - 0x154]
jmp 0x472000
mov edi, dword [ebp - 0x154]
mov ebx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x158]
mov eax, dword [eax + 0x28]
cdq
add ecx, eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x158], ecx
adc eax, edx
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x15c], eax
cmp eax, dword [edx + 0x7c]
jb 0x471e80
ja 0x472121
cmp ecx, dword [edx + 0x78]
jb 0x471e80
mov esi, dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472132
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x160], eax
mov edx, esi
sub edi, esi
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], cl
test cl, cl
jne 0x472160
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x160]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4721a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x16c]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004049a0
int3