Function at 0x4d0644
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x577848], 1
mov eax, esi
mov edx, dword [0x462d38]
call fcn.00403ee0
test al, al
je 0x4d0696
push 0
mov dx, 4
xor eax, eax
call fcn.00407df4
push eax
mov eax, dword [0x5791d0]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407bd8
mov ebx, eax
jmp 0x4d0698
xor ebx, ebx
test ebx, ebx
je 0x4d06b4
cmp dword [ebx + 0x248], 0
je 0x4d06b4
call fcn.004d39e0
test al, al
je 0x4d06b4
mov byte [ebp - 0x6d], 1
jmp 0x4d06b8
mov byte [ebp - 0x6d], 0
call fcn.004d39e0
test al, al
je 0x4d0f39
mov eax, esi
mov edx, dword [0x462d38]
call fcn.00403ee0
test al, al
je 0x4d0f39
cmp dword [ebx + 0x248], 0
je 0x4d071d
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x4d06fd
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x4d071d
xor edx, edx
xor eax, eax
call fcn.004dc2f8
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.00508814
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.004dc2f8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425660
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004ce1e4
cmp dword [ebp - 0x1c], 0
je 0x4d11e6
cmp dword [ebx + 0x248], 0
jne 0x4d07a8
push 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00419078
lea edx, [ebp - 0xac]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004c1ed4
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425a08
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x74], 0x11b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x84]
xor edx, edx
xor eax, eax
call fcn.00419050
cmp dword [ebp - 0x10], 0
jle 0x4d07fc
mov byte [ebp - 0x52], 0
jmp 0x4d0802
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
mov eax, dword [ebx + 0x248]
test eax, eax
je 0x4d0c9c
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x248]
call fcn.0051298c
cmp byte [ebx + 0x1ec], 0
je 0x4d0869
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.0050dc00
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x68], eax
jmp 0x4d0962
mov eax, dword [ebx + 0x22c]
call fcn.00453c2c
push eax
call fcn.00407ad8
test eax, eax
je 0x4d091a
mov eax, dword [ebx + 0x54]
call fcn.004e4ec0
mov eax, dword [eax + 0x90]
mov di, word [eax + 0x2e]
mov eax, dword [ebx + 0x54]
call fcn.004e4ec0
mov eax, dword [eax + 0x90]
cmp di, word [eax + 0x2c]
je 0x4d091a
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.0050dc00
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004fc260
add edi, eax
xor edx, edx
mov eax, ebx
call fcn.004fdcd4
sub edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.00453c2c
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004fc1f8
sub edi, eax
mov eax, dword [ebx + 0x54]
call fcn.004e4ec0
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2c]
add edi, eax
mov eax, dword [ebx + 0x54]
call fcn.004e4ec0
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2e]
sub edi, eax
mov dword [ebp - 0x68], edi
jmp 0x4d0962
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.0050dc00
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004fc260
add edi, eax
xor edx, edx
mov eax, ebx
call fcn.004fdcd4
sub edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.00453c2c
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004fc1f8
sub edi, eax
mov dword [ebp - 0x68], edi
mov eax, dword [ebx + 0x22c]
call fcn.00453c2c
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004fc1f8
push eax
mov eax, dword [ebx + 0x248]
call fcn.004fc280
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.0050dc00
add edi, dword [ebp - 0xac]
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407a30
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.0044ca50
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.0044ca74
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x7c]
call fcn.0044ca9c
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x78]
call fcn.0044cac0
push 3
mov eax, dword [ebx + 0x22c]
call fcn.00453c2c
push eax
call fcn.004079b0
mov edi, eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
push edi
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00453c2c
push eax
call fcn.00407c78
push 0
call fcn.00407908
mov dword [ebp - 0x60], eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425b10
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00453c2c
push eax
mov eax, dword [0x5791b0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00453c2c
push eax
call fcn.00407cb0
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004dc2f8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00419078
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042a7e8
call fcn.00425b10
xor ecx, ecx
pop edx
call fcn.004d758c
cmp dword [ebp - 0x10], 0
jle 0x4d0bc1
push ebp
call fcn.004d02cc
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4d0bbb
push ebp
call fcn.004d042c
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042a7e8
call fcn.00425b10
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00453c2c
push eax
mov eax, dword [0x5791b0]
mov eax, dword [eax]
call eax
push 0
xor eax, eax
mov al, byte [ebp - 0x52]
mov edx, dword [ebp - 0xc]
sub edx, eax
lea edx, [edx + edx*2]
xor eax, eax
call fcn.0042cac8
mov edx, eax
mov eax, 0xff
call fcn.0042ca04
push eax
mov eax, dword [ebp - 0x88]
call fcn.00453c2c
mov edx, dword [ebp - 0x8c]
pop ecx
call fcn.004fb25c
push ebp
call fcn.004d05e8
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4d0bb2
push 0xc
call sub.user32.dll_SetClipboardData
cmp edi, dword [ebp - 0x10]
jle 0x4d0b1a
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
push eax
push 0
call fcn.00407bb0
mov byte [0x577848], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4d0bea
mov dl, byte [ebp - 0xc]
call fcn.0046a740
push 0
push 1
push 0xb
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407bd8
push 0x585
push 0
push 0
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407b88
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.00512838
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00453c2c
push eax
call fcn.00407c90
mov eax, dword [ebp - 0x74]
or eax, 4
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
push 0
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00453c2c
push eax
call fcn.00407c78
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.00511a64
lea eax, [ebp - 0x8c]
call fcn.0040f65c
lea eax, [ebp - 0x88]
call fcn.0040f65c
jmp 0x4d0f24
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407a30
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46303c]
call fcn.00465b08
mov edi, eax
mov dword [0x577844], edi
mov dword [edi + 0xc], 0xffffff9e
xor edx, edx
mov eax, edi
call fcn.004672cc
mov edx, dword [esi + 0x40]
mov eax, dword [0x577844]
call fcn.0044ca50
mov edx, dword [esi + 0x44]
mov eax, dword [0x577844]
call fcn.0044ca74
mov edx, dword [esi + 0x48]
mov eax, dword [0x577844]
call fcn.0044ca9c
mov edx, dword [esi + 0x4c]
mov eax, dword [0x577844]
call fcn.0044cac0
push 0xffffffffffffffec
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407a20
and eax, 8
cmp eax, 8
jne 0x4d0d32
mov dl, 3
mov eax, dword [0x577844]
call fcn.004675c8
or edi, 0xffffffff
jmp 0x4d0d47
push 3
mov eax, dword [ebx + 0x22c]
call fcn.00453c2c
push eax
call fcn.00407a10
mov edi, eax
mov eax, dword [ebp - 0x74]
and eax, 0xfffffffd
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [0x577844]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x577844]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407c78
push 0
call fcn.00407908
mov dword [ebp - 0x60], eax
push 0xffffffffffffffec
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407a20
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407c68
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425b10
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
mov eax, dword [0x5791b0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407cb0
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004dc2f8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00419078
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042a7e8
call fcn.00425b10
xor ecx, ecx
pop edx
call fcn.004d758c
cmp dword [ebp - 0x10], 0
jle 0x4d0ec8
push ebp
call fcn.004d02cc
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4d0ec2
push ebp
call fcn.004d042c
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042a7e8
call fcn.00425b10
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
mov eax, dword [0x5791b0]
mov eax, dword [eax]
call eax
push ebp
call fcn.004d05e8
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4d0ebd
push 0xc
call sub.user32.dll_SetClipboardData
cmp edi, dword [ebp - 0x10]
jle 0x4d0e63
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
push eax
push 0
call fcn.00407bb0
mov byte [0x577848], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4d0ef1
mov dl, byte [ebp - 0xc]
call fcn.0046a740
push 0
push 1
push 0xb
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407bd8
push 0x585
push 0
push 0
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407b88
mov eax, 0x577844
call fcn.0040f65c
lea eax, [ebp - 0x58]
call fcn.0040f65c
lea eax, [ebp - 0x1c]
call fcn.0040f65c
jmp 0x4d11e6
cmp dword [0x577844], 0
jne 0x4d0f49
mov eax, esi
call fcn.004d01b4
cmp dword [0x577844], 0
je 0x4d11e6
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004dc2f8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425660
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004ce1e4
cmp dword [ebp - 0x1c], 0
je 0x4d11e6
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425a08
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004dc2f8
mov dword [ebp - 0x5c], eax
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x6d], 0
jne 0x4d0ff3
test ebx, ebx
je 0x4d0ff3
mov edi, ebx
mov eax, edi
call fcn.004fcc18
cmp dword [0x577844], 0
je 0x4d11e6
push 0
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004fd028
push eax
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407c90
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407a18
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x10], 0
jle 0x4d10c5
mov eax, 0xff
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov ebx, 0xff
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4d10c5
push 0
mov edx, ebx
xor eax, eax
call fcn.0042cac8
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x577858
lea eax, [ebp - 0x5c]
call fcn.004dc058
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.0042a7e8
call fcn.00425b10
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x5795f4]
cmp dword [eax], 0
je 0x4d10a6
push 0
mov dx, 3
xor eax, eax
call fcn.00407df4
push eax
mov eax, dword [0x5791d0]
mov eax, dword [eax]
push eax
mov eax, dword [0x5795f4]
mov eax, dword [eax]
call fcn.00453c2c
push eax
call fcn.00407bd8
inc edi
sub ebx, dword [ebp - 0x64]
cmp edi, dword [ebp - 0x10]
jg 0x4d10c5
cmp dword [ebp - 0x10], 0
jle 0x4d10bc
push 0xc
call sub.user32.dll_SetClipboardData
cmp edi, dword [ebp - 0x10]
jle 0x4d102c
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0042a7e8
call fcn.00425b10
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x5795f4]
cmp dword [eax], 0
je 0x4d1123
push 0
mov dx, 3
xor eax, eax
call fcn.00407df4
push eax
mov eax, dword [0x5791d0]
mov eax, dword [eax]
push eax
mov eax, dword [0x5795f4]
mov eax, dword [eax]
call fcn.00453c2c
push eax
call fcn.00407bd8
mov byte [0x577848], 0
cmp byte [esi + 0x57], 0
je 0x4d11ae
push 0
push 1
push 0xb
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407bd8
mov eax, dword [0x579380]
cmp dword [eax], 6
jl 0x4d1163
push 0x585
push 0
push 0
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407b88
mov eax, esi
mov edx, dword [0x462d38]
call fcn.00403ee0
test al, al
je 0x4d118f
push 0xffffffffffffffec
mov eax, esi
call fcn.00453c2c
push eax
call fcn.00407a20
and eax, 0x80000
cmp eax, 0x80000
je 0x4d11ae
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407c78
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x577844]
call fcn.00453c2c
push eax
call fcn.00407bb0
mov eax, 0x577844
call fcn.0040f65c
lea eax, [ebp - 0x5c]
call fcn.0040f65c
mov eax, 0x577858
call fcn.0040f65c
lea eax, [ebp - 0x1c]
call fcn.0040f65c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4