Function at 0x4763f3
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov eax, dword [eax + 0x2e8]
mov dword [ebp - 0x28], edi
cmp eax, edi
mov dword [ebp - 0x1c], edi
je 0x476d6d
cmp dword [ebx + 0x198], edi
jne 0x476d6d
cmp dword [ebp + 0xc], 1
jne 0x47644c
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x20
jae 0x47644c
cmp ecx, 0xd
je 0x47644c
cmp ecx, 9
je 0x47644c
cmp ecx, 8
jne 0x476d6d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x3c]
mov esi, eax
mov eax, dword [ecx + 0x2e4]
cmp eax, dword [ecx + 0x2e0]
je 0x476480
mov edi, dword [ecx + 0x2f4]
push 0xffffffffffffffff
push eax
call fcn.00477237
mov eax, dword [ebx + 0x3c]
mov dword [eax + 0x2f4], edi
xor edi, edi
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 0x2e0]
add eax, 0xc8
cmp eax, 0x3000
jle 0x4764a0
push 0x1800
push edi
call fcn.00477237
mov eax, dword [ebx + 0x3c]
add esi, dword [eax + 0x2e0]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x1c]
call fcn.0042412e
push dword [ebx + 0x1c]
call fcn.004241af
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebx + 0x1a8], eax
setne al
inc eax
sub edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
je 0x4764f3
cmp dword [ebp + 0xc], 7
je 0x4764f3
cmp dword [ebp + 0xc], 8
je 0x4764f3
cmp dword [ebp + 0xc], 9
jne 0x476566
cmp dword [ebp + 0xc], 1
jne 0x476560
mov eax, dword [ebx + 0x208]
cmp dword [eax + 0xe0a], 0
jne 0x476551
cmp dword [ebp + 0x14], 8
je 0x476557
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebx + 0x1c]
call fcn.00423f6d
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x120]
je 0x47656d
cmp dword [ebp + 0x14], 0xd
je 0x47656d
mov eax, dword [ebx + 0x1a8]
test eax, eax
jne 0x476548
cmp byte [ebp - 0xc], 0xd
jne 0x476566
test eax, eax
je 0x47656d
cmp word [ebp - 0xc], 0xd
je 0x47656d
jmp 0x476566
cmp dword [ebp + 0x14], 8
jne 0x47656d
mov dword [ebp + 0xc], 3
jmp 0x47656d
cmp dword [ebp + 0xc], 5
jne 0x47656d
mov dword [ebp + 0xc], 6
cmp dword [ebp - 4], 0
je 0x476580
cmp dword [ebp + 0xc], 1
jne 0x476580
mov dword [ebp + 0xc], 6
lea eax, [esi + 0x14]
push 6
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.004843d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp eax, 1
mov dword [esi + 4], eax
mov dword [esi + 0x10], ecx
je 0x476cd7
cmp eax, 2
je 0x476c88
cmp eax, 3
je 0x476c0b
push 6
pop ecx
cmp eax, ecx
je 0x47661c
cmp eax, 7
je 0x4765df
jle 0x476d4e
cmp eax, 9
jg 0x476d4e
push 0x1a
pop eax
mov dword [esi], eax
jmp 0x476cd2
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [esi + 8], eax
jle 0x476d4e
cmp eax, 3
jg 0x476d4e
push 0x18
mov dword [esi], 0x2f
push dword [ebp + 0x1c]
push dword [ebp - 0x10]
call fcn.00483fe0
add esp, 0xc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi]
add dword [eax + 0x2e0], ecx
jmp 0x476d4e
mov eax, dword [ebx + 0x1a8]
test eax, eax
je 0x476628
add edi, edi
test edi, edi
jne 0x476849
cmp dword [ebp - 8], 5
je 0x4768f8
cmp dword [ebp - 8], ecx
je 0x476852
cmp dword [ebp - 8], 1
jne 0x47660c
cmp dword [ebp - 4], edi
je 0x4767fb
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 4]
cmp ecx, 0x64
jge 0x476722
test eax, eax
je 0x476683
cmp dword [ebp - 4], edi
mov edx, dword [ebp - 4]
jle 0x476696
mov ecx, edx
mov eax, 0x200020
lea edi, [esi + 0x14]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x476696
push dword [ebp - 4]
push 0x20
push dword [ebp - 0x10]
call fcn.004843d0
mov edx, dword [ebp - 4]
add esp, 0xc
xor edi, edi
mov dword [esi + 8], 2
cmp dword [ebx + 0x1a8], edi
je 0x4766b4
mov cx, word [ebp + 0x14]
lea eax, [esi + 0x14]
mov word [eax + edx*2], cx
jmp 0x4766cb
mov ecx, dword [ebp + 0x14]
mov ax, cx
shr ax, 8
test al, al
je 0x4766c7
mov byte [edx + esi + 0x14], al
inc edx
mov byte [edx + esi + 0x14], cl
inc edx
cmp dword [ebx + 0x1a8], edi
je 0x4766fd
cmp dword [ebp + 0x14], 0xd
lea eax, [esi + 0x14]
jne 0x4766ee
mov word [eax + edx*2], 0xa
inc edx
mov word [eax + edx*2], di
lea eax, [edx + edx + 0x20]
jmp 0x4766f6
mov word [eax + edx*2], di
lea eax, [edx + edx + 0x1e]
mov dword [esi], eax
jmp 0x47660c
cmp dword [ebp + 0x14], 0xd
jne 0x476718
mov byte [edx + esi + 0x14], 0xa
and byte [edx + esi + 0x15], 0
inc edx
add edx, 0x1d
mov dword [esi], edx
jmp 0x47660c
and byte [edx + esi + 0x15], 0
add edx, 0x1b
jmp 0x476711
mov eax, dword [ebp - 4]
add eax, 3
imul eax, dword [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x47674c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
mov dword [ebp + 0xc], edi
jne 0x47675d
mov ecx, dword [ebx + 0x3c]
push 0xffffffffffffffff
push 0
call fcn.00477237
jmp 0x476d4e
cmp dword [ebx + 0x1a8], 0
je 0x4767a5
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x476784
mov edi, dword [ebp + 0xc]
mov eax, 0x200020
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
lea eax, [edi + ecx*2]
cmp edx, 0xd
mov word [eax], dx
jne 0x47679f
mov word [eax], 0xa
and word [edi + ecx*2 + 2], 0
jmp 0x4767ce
and word [eax], 0
jmp 0x4767ce
push dword [ebp - 4]
push 0x20
push edi
call fcn.004843d0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
add eax, edi
add esp, 0xc
cmp ecx, 0xd
mov byte [eax], cl
jne 0x4767cb
mov byte [eax], 0xa
and byte [eax + 1], 0
jmp 0x4767ce
and byte [eax], 0
lea eax, [ebp + 0x10]
push 4
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00483fe0
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0x82
mov dword [esi], 0x1c
jmp 0x47660c
mov ecx, dword [ebp - 0x10]
mov al, byte [ebp - 0xc]
cmp dword [ebp - 0x24], 2
push 1
mov byte [ecx], al
pop eax
jne 0x476815
mov al, byte [ebp - 0xb]
push 2
mov byte [esi + 0x15], al
pop eax
mov edx, dword [ebp + 0x14]
and byte [esi + eax + 0x14], 0
mov cx, dx
inc eax
shr cx, 8
test cl, cl
je 0x47682e
mov byte [esi + eax + 0x14], cl
inc eax
mov byte [esi + eax + 0x14], dl
and byte [esi + eax + 0x15], 0
inc eax
mov dword [esi + 8], 3
add eax, 0x1b
mov dword [esi], eax
jmp 0x47660c
cmp edi, 0x63
jg 0x4768f4
cmp dword [ebp - 8], 5
je 0x4768f4
cmp dword [ebp - 8], ecx
je 0x4768f4
push dword [ebp - 0x10]
push dword [ebx + 0x1c]
call fcn.00423d87
and byte [edi + esi + 0x14], 0
cmp dword [ebx + 0x1a8], 0
je 0x476884
inc edi
and byte [edi + esi + 0x14], 0
push 1
pop eax
cmp dword [ebp - 8], eax
jne 0x4768e9
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
je 0x4768e9
cmp ecx, 0x2e
je 0x4768e9
mov dword [esi + 8], 3
cmp dword [ebx + 0x1a8], 0
lea eax, [edi + 1]
je 0x4768b5
mov word [esi + eax + 0x14], cx
inc eax
inc eax
jmp 0x4768ba
mov byte [esi + eax + 0x14], cl
inc eax
cmp ecx, 0xd
jne 0x4768e2
mov byte [esi + eax + 0x14], 0xa
and byte [esi + eax + 0x15], 0
cmp dword [ebx + 0x1a8], 0
lea eax, [esi + eax + 1]
je 0x4768da
and byte [eax + 0x15], 0
add edi, 0x1b
jmp 0x476a57
and byte [esi + eax + 0x14], 0
jmp 0x4768da
mov dword [esi + 8], eax
add edi, 0x19
jmp 0x476a57
test edi, edi
jne 0x476912
cmp dword [ebp - 8], ecx
jne 0x476903
cmp dword [ebp + 0x10], 0
jne 0x47691d
and dword [ebp + 0xc], 0
mov dword [esi], 0x17
jmp 0x4769ad
cmp dword [ebp - 8], ecx
jne 0x476928
cmp dword [ebp + 0x10], 0
je 0x476928
push dword [ebp + 0x18]
call fcn.00483b20
pop ecx
mov edi, eax
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x47674c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x47674c
cmp dword [ebp - 8], 6
jne 0x47696c
cmp dword [ebp + 0x10], 0
je 0x47696c
push edi
push dword [ebp + 0x18]
push eax
call fcn.00483fe0
add esp, 0xc
jmp 0x476977
push dword [ebp + 0xc]
push dword [ebx + 0x1c]
call fcn.00423d87
mov eax, dword [ebp + 0xc]
push 4
add edi, eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
and byte [edi], 0
and byte [edi + 1], 0
call fcn.00483fe0
add esp, 0xc
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 6
mov dword [esi], 0x1b
mov dword [ebp + 0xc], 4
pop ecx
mov edx, dword [ebp - 8]
cmp edx, 1
jne 0x4769f2
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
je 0x4769fb
cmp ecx, 0x2e
je 0x4769fb
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], 0x43
add eax, esi
cmp ecx, 0xd
mov byte [eax + 0x14], cl
jne 0x4769e6
mov byte [eax + 0x15], 0xa
and byte [eax + 0x16], 0
add dword [esi], 3
jmp 0x47660c
and byte [eax + 0x15], 0
add dword [esi], 2
jmp 0x47660c
cmp edx, 5
je 0x476a15
cmp edx, ecx
je 0x476a15
cmp dword [ebp + 0xc], 0
jne 0x476a09
and dword [esi], 0
jmp 0x47660c
mov dword [esi + 8], 0x41
jmp 0x47660c
and dword [ebp - 0x18], 0
cmp edx, 5
jne 0x476a79
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
xor edi, edi
mov dword [ebp - 0x18], eax
cmp dword [ebx + 0x1a8], edi
je 0x476a38
push 0xd
jmp 0x476a3a
push 1
call fcn.00427f72
cmp eax, edi
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x476a5e
cmp dword [ebp - 0x18], edi
je 0x476a52
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp + 0xc], edi
jne 0x476a09
mov dword [esi], edi
jmp 0x47660c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp + 0x18], eax
cmp dword [ebx + 0x1a8], 0
push eax
je 0x476a8e
call fcn.00484428
jmp 0x476a93
mov eax, dword [ebp + 0x18]
cmp edx, ecx
mov dword [ebp + 0x18], eax
jne 0x476a68
cmp dword [ebp + 0x10], 0
je 0x476a68
mov eax, dword [ebp + 0x10]
jmp 0x476aa6
call fcn.00483b20
cmp dword [ebp - 8], 5
pop ecx
mov dword [ebp + 0x14], eax
jne 0x476aa9
cmp dword [ebp - 4], 0
je 0x476aa9
add eax, dword [ebp - 4]
mov dword [ebp + 0x14], eax
cmp dword [ebx + 0x1a8], 0
je 0x476ab8
lea eax, [eax + eax + 2]
jmp 0x476ab9
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x47674c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
mov dword [ebp - 0x24], edi
je 0x47674c
cmp dword [ebp - 8], 6
jne 0x476b0f
cmp dword [ebp + 0x10], 0
je 0x476b7e
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
sub eax, dword [ebx + 0xbc]
push eax
push edi
push dword [ebx + 0x1c]
call fcn.00423e07
add esp, 0x10
jmp 0x476b9e
cmp dword [ebp - 8], 5
jne 0x476b7e
xor eax, eax
cmp dword [ebp - 4], eax
je 0x476b7e
cmp dword [ebx + 0x1a8], eax
je 0x476b5a
cmp dword [ebp - 4], eax
jle 0x476b40
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x24]
mov eax, 0x200020
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, eax
imul ecx, ecx, 0x7fffffff
add ecx, dword [ebp + 0x14]
lea eax, [edi + eax*2]
shl ecx, 1
push ecx
push dword [ebp + 0x18]
push eax
jmp 0x476b96
push dword [ebp - 4]
push 0x20
push edi
call fcn.004843d0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
sub ecx, eax
add eax, edi
push ecx
push dword [ebp + 0x18]
push eax
call fcn.00483fe0
add esp, 0x18
jmp 0x476b9e
cmp dword [ebx + 0x1a8], 0
je 0x476b8f
mov eax, dword [ebp + 0x14]
add eax, eax
push eax
jmp 0x476b92
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
call fcn.00483fe0
add esp, 0xc
cmp dword [ebx + 0x1a8], 0
mov eax, dword [ebp + 0x14]
je 0x476bb1
and word [edi + eax*2], 0
jmp 0x476bb5
and byte [edi + eax], 0
lea eax, [ebp + 0x1c]
push 4
push eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + esi + 0x14]
push eax
call fcn.00483fe0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0xc
push dword [ebp + 0x1c]
call edi
cmp dword [ebp - 8], 5
jne 0x476bed
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x18], 0
je 0x476bed
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp + 0xc], 0
jne 0x476bfc
mov dword [esi + 8], 0x82
jmp 0x476c03
mov dword [esi + 8], 0xc3
add dword [esi], 4
jmp 0x47660c
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebx + 0x1c]
call fcn.00423f6d
mov cl, byte [ebp - 0xc]
cmp cl, 0xa
jne 0x476c62
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffffe
push dword [ebx + 0x1c]
call fcn.00423f6d
test eax, eax
je 0x476c57
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0xc]
push 1
cmp eax, 2
mov byte [edx], cl
pop ecx
je 0x476c4c
cmp dword [ebx + 0x1a8], 0
je 0x476c5a
mov al, byte [ebp - 0xb]
push 2
mov byte [esi + 0x15], al
pop ecx
jmp 0x476c5a
mov ecx, dword [ebp - 0x28]
mov byte [esi + ecx + 0x14], 0xa
inc ecx
jmp 0x476c78
mov edx, dword [ebp - 0x10]
push 1
cmp eax, 2
mov byte [edx], cl
pop ecx
jne 0x476c78
mov al, byte [ebp - 0xb]
push 2
mov byte [esi + 0x15], al
pop ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x10]
push 0x1a
cmp byte [ecx], 0
pop eax
mov dword [esi], eax
jmp 0x476cd0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebx + 0x1c]
call fcn.00423f6d
mov edx, dword [ebp - 0x10]
mov edi, eax
mov al, byte [ebp - 0xc]
push 1
cmp edi, 2
mov byte [edx], al
pop ecx
je 0x476cb1
cmp dword [ebx + 0x1a8], 0
je 0x476cba
mov al, byte [ebp - 0xb]
push 2
mov byte [esi + 0x15], al
pop ecx
cmp byte [edx], 0xd
jne 0x476cc5
mov byte [esi + ecx + 0x14], 0xa
inc ecx
cmp byte [edx], 0
push 0x1a
pop eax
mov dword [esi + 0xc], ecx
mov dword [esi], eax
je 0x476d4e
mov ecx, dword [ebx + 0x3c]
jmp 0x476d48
xor edx, edx
cmp dword [ebx + 0x1a8], edx
je 0x476cf0
mov eax, dword [ebp - 0x10]
mov cx, word [ebp + 0x14]
push 2
mov word [eax], cx
pop eax
jmp 0x476d10
mov ecx, dword [ebp + 0x14]
mov ax, cx
shr ax, 8
test al, al
je 0x476d08
mov edi, dword [ebp - 0x10]
push 1
mov byte [edi], al
pop eax
jmp 0x476d0b
mov eax, dword [ebp - 0x28]
mov byte [esi + eax + 0x14], cl
inc eax
cmp dword [ebp + 0x14], 0xd
jne 0x476d26
cmp dword [ebx + 0x1a8], edx
mov byte [esi + eax + 0x14], 0xa
je 0x476d39
inc eax
jmp 0x476d2e
cmp dword [ebx + 0x1a8], edx
je 0x476d3a
and byte [esi + eax + 0x14], 0
inc eax
and byte [esi + eax + 0x14], 0
inc eax
lea ecx, [eax + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi], ecx
mov ecx, dword [ebx + 0x3c]
add eax, 0x18
add dword [ecx + 0x2e0], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 0x2e0]
mov dword [eax + 0x2e4], ecx
mov eax, dword [ebx + 0x3c]
push dword [eax + 0x2e8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
pop edi
pop ebx
leave
ret 0x18