Function at 0x50cae7
Capabilities:
Open clipboard

Disassembly:
mov eax, 0x576baa
call fcn.00524444
sub esp, 0x90
mov eax, dword [0x62ae3c]
push ebx
push edi
xor edi, edi
add eax, 0x1864
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov ebx, ecx
cmp dword [eax], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edi
je 0x50cb44
push 0x622c94
lea ecx, [ebp - 0x2c]
mov dword [eax], edi
call fcn.0053ebbd
mov ecx, dword [0x62ae3c]
push eax
mov dword [ebp - 4], edi
call fcn.004981c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0053eb4f
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 0x4a8]
cmp ecx, edi
je 0x50d70a
cmp dword [ebx + 0x1f4], edi
jne 0x50d70a
cmp dword [ebp + 0x10], 1
jne 0x50cb9f
cmp dword [0x5c1d78], edi
jne 0x50cb8c
mov eax, dword [ebp + 0x18]
cmp eax, 0x20
jae 0x50cb9f
cmp eax, 0xd
je 0x50cb9f
cmp eax, 9
je 0x50cb9f
cmp eax, 8
jne 0x50d70a
jmp 0x50cb9f
cmp dword [ebp + 0x18], edi
jbe 0x50d70a
cmp dword [ebp + 0x18], 0x1b
je 0x50d70a
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x3c]
mov esi, eax
mov eax, dword [ecx + 0x4a0]
cmp eax, dword [ecx + 0x49c]
je 0x50cbd9
mov edx, dword [ecx + 0x4b4]
push 0xffffffffffffffff
mov dword [ebp - 0x2c], edx
cdq
push edx
push eax
call fcn.0050ddcb
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x4b4], ecx
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 0x49c]
add eax, 0xc8
cmp eax, 0x19000
jle 0x50cbfc
push 0xc800
push 0
push 0
call fcn.0050ddcb
mov eax, dword [ebx + 0x3c]
add esi, dword [eax + 0x49c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x1c]
call fcn.00463bb0
push dword [ebx + 0x1c]
call fcn.00463c70
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebx + 0x20c], eax
setne al
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + 0x168]
cmp eax, 2
jne 0x50cc49
mov byte [ebp - 0xd], 0xd
jmp 0x50cc58
test eax, eax
mov byte [ebp - 0xd], 0xa
jne 0x50cc58
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x3c]
push 6
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
pop eax
je 0x50cc7d
mov ecx, dword [ebp + 0x10]
cmp ecx, 7
je 0x50cc7d
cmp ecx, 8
je 0x50cc7d
cmp ecx, 9
je 0x50cc7d
cmp ecx, 0xa
jne 0x50ccfc
cmp dword [ebp + 0x10], 1
jne 0x50ccf6
mov eax, dword [0x62ae3c]
cmp dword [eax + 0x1938], 0
jne 0x50cce7
cmp dword [ebp + 0x18], 8
je 0x50cced
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebx + 0x1c]
call fcn.00463959
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x38]
cmp eax, dword [ebx + 0x178]
je 0x50ccff
movsx ecx, byte [ebp - 0xd]
cmp dword [ebp + 0x18], ecx
je 0x50ccff
mov eax, dword [ebx + 0x20c]
test eax, eax
jne 0x50ccd6
movzx edx, byte [ebp - 0x20]
cmp edx, ecx
jne 0x50ccde
test eax, eax
je 0x50ccff
movzx eax, word [ebp - 0x20]
cmp eax, ecx
je 0x50ccff
mov dword [ebp + 0x10], 6
jmp 0x50ccff
cmp dword [ebp + 0x18], 8
jne 0x50ccff
mov dword [ebp + 0x10], 3
jmp 0x50ccff
cmp dword [ebp + 0x10], 5
jne 0x50ccff
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x50cd12
cmp dword [ebp + 0x10], 1
jne 0x50cd12
mov dword [ebp + 0x10], 6
lea eax, [esi + 0x18]
push 6
push 0
push eax
mov dword [ebp - 0x28], eax
call fcn.00524810
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 4], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [esi + 0x14], ecx
cmp eax, 9
ja case.0x50cd41.4
jmp dword [eax*4 + 0x50d71a]
push 0x20
pop ecx
mov dword [esi], ecx
jmp 0x50ce3f
xor edx, edx
cmp dword [ebx + 0x20c], edx
je 0x50cd6b
mov eax, dword [ebp - 0x28]
mov cx, word [ebp + 0x18]
push 2
mov word [eax], cx
pop edi
jmp 0x50cd86
mov ecx, dword [ebp + 0x18]
mov ax, cx
shr ax, 8
test al, al
je 0x50cd81
mov edi, dword [ebp - 0x28]
push 1
mov byte [edi], al
pop edi
mov byte [esi + edi + 0x18], cl
inc edi
cmp dword [ebp + 0x18], 0xd
jne 0x50cdbe
cmp dword [ebp - 0x1c], edx
jne 0x50cdae
cmp dword [ebx + 0x20c], edx
je 0x50cda5
movsx ax, byte [ebp - 0xd]
mov word [esi + edi + 0x17], ax
jmp 0x50cdc6
mov al, byte [ebp - 0xd]
mov byte [esi + edi + 0x17], al
jmp 0x50cdd2
cmp dword [ebx + 0x20c], edx
mov byte [esi + edi + 0x18], 0xa
je 0x50cdd1
inc edi
jmp 0x50cdc6
cmp dword [ebx + 0x20c], edx
je 0x50cdd2
and byte [esi + edi + 0x18], 0
inc edi
and byte [esi + edi + 0x18], 0
inc edi
lea eax, [edi + 0x1e]
mov dword [esi + 0xc], edi
mov dword [esi], eax
mov eax, dword [ebx + 0x3c]
add edi, 0x1e
add dword [eax + 0x49c], edi
jmp case.0x50cd41.4
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebx + 0x1c]
call fcn.00463959
mov edx, dword [ebp - 0x28]
mov edi, eax
mov al, byte [ebp - 0x20]
push 1
cmp edi, 2
mov byte [edx], al
pop ecx
je 0x50ce14
cmp dword [ebx + 0x20c], 0
je 0x50ce1d
mov al, byte [ebp - 0x1f]
push 2
mov byte [esi + 0x19], al
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x50ce2e
cmp byte [edx], 0xd
jne 0x50ce2e
mov byte [esi + ecx + 0x18], 0xa
inc ecx
cmp byte [edx], 0
push 0x20
mov dword [esi + 0xc], ecx
pop ecx
mov dword [esi], ecx
je case.0x50cd41.4
mov eax, dword [ebx + 0x3c]
jmp 0x50d6e5
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push dword [ebx + 0x1c]
call fcn.00463959
mov cl, byte [ebp - 0x20]
cmp cl, 0xa
jne 0x50ce9f
cmp dword [ebp - 0x1c], 0
je 0x50ce9f
lea eax, [ebp - 0x20]
push eax
push 0xfffffffffffffffe
push dword [ebx + 0x1c]
call fcn.00463959
test eax, eax
je 0x50ce97
mov edx, dword [ebp - 0x28]
mov cl, byte [ebp - 0x20]
push 1
cmp eax, 2
mov byte [edx], cl
pop edi
je 0x50ce8e
cmp dword [ebx + 0x20c], 0
je 0x50ce97
mov al, byte [ebp - 0x1f]
push 2
mov byte [esi + 0x19], al
pop edi
mov byte [esi + edi + 0x18], 0xa
inc edi
jmp 0x50cebe
mov edx, dword [ebp - 0x28]
push 1
cmp eax, 2
pop edi
mov byte [edx], cl
je 0x50ceb5
cmp dword [ebx + 0x20c], 0
je 0x50cebe
mov al, byte [ebp - 0x1f]
push 2
mov byte [esi + 0x19], al
pop edi
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], edi
mov dword [esi], 0x20
cmp byte [eax], 0
je case.0x50cd41.4
mov eax, dword [ebx + 0x3c]
add dword [eax + 0x49c], 0x20
jmp case.0x50cd41.4
mov eax, dword [ebx + 0x20c]
xor edx, edx
cmp eax, edx
je 0x50cef6
mov ecx, dword [ebp - 0x24]
add ecx, ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], edx
jne 0x50d195
cmp dword [ebp - 0x18], 5
je 0x50d28d
cmp dword [ebp - 0x18], 6
je 0x50d19f
cmp dword [ebp - 0x18], 1
jne 0x50d6e0
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x50d10d
mov ecx, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x14]
cmp ecx, 0x64
jge 0x50d013
cmp eax, edi
je 0x50cf59
cmp dword [ebp - 0x14], edi
mov edx, dword [ebp - 0x14]
jle 0x50cf6c
mov ecx, edx
mov eax, 0x200020
lea edi, [esi + 0x18]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x50cf6c
push dword [ebp - 0x14]
push 0x20
push dword [ebp - 0x28]
call fcn.00524810
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
mov dword [esi + 8], 2
jne 0x50cf89
cmp eax, 0xd
jne 0x50cf89
movsx eax, byte [ebp - 0xd]
mov dword [ebp + 0x18], eax
cmp dword [ebx + 0x20c], ecx
je 0x50cf9b
lea edi, [esi + 0x18]
mov word [edi + edx*2], ax
inc edx
jmp 0x50cfb2
mov cx, ax
shr cx, 8
test cl, cl
je 0x50cfab
mov byte [edx + esi + 0x18], cl
inc edx
mov byte [edx + esi + 0x18], al
inc edx
xor ecx, ecx
cmp dword [ebx + 0x20c], ecx
je 0x50cfea
cmp eax, 0xd
jne 0x50cfd8
cmp dword [ebp - 0x1c], ecx
je 0x50cfd8
lea eax, [esi + 0x18]
mov word [eax + edx*2], 0xa
inc edx
mov word [eax + edx*2], cx
lea eax, [edx + edx + 0x26]
jmp 0x50cfe3
lea eax, [esi + 0x18]
mov word [eax + edx*2], cx
lea eax, [edx + edx + 0x24]
mov dword [esi], eax
jmp 0x50d6e0
cmp eax, 0xd
jne 0x50d009
cmp dword [ebp - 0x1c], ecx
je 0x50d009
mov byte [edx + esi + 0x18], 0xa
and byte [edx + esi + 0x19], 0
inc edx
add edx, 0x23
mov dword [esi], edx
jmp 0x50d6e0
and byte [edx + esi + 0x19], 0
add edx, 0x21
jmp 0x50d002
mov eax, dword [ebp - 0x14]
add eax, 3
imul eax, dword [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x14], eax
je 0x50d03d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
mov dword [ebp + 0x10], edi
jne 0x50d050
mov ecx, dword [ebx + 0x3c]
push 0xffffffffffffffff
push 0
push 0
call fcn.0050ddcb
jmp case.0x50cd41.4
cmp dword [ebp - 0x1c], 0
jne 0x50d063
cmp dword [ebp + 0x18], 0xd
jne 0x50d063
movsx eax, byte [ebp - 0xd]
mov dword [ebp + 0x18], eax
cmp dword [ebx + 0x20c], 0
je 0x50d0b1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jle 0x50d08a
mov edi, dword [ebp + 0x10]
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 + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
lea eax, [edi + ecx*2]
cmp edx, 0xd
mov word [eax], dx
jne 0x50d0ab
cmp dword [ebp - 0x1c], 0
je 0x50d0ab
mov word [eax], 0xa
and word [edi + ecx*2 + 2], 0
jmp 0x50d0e0
and word [eax], 0
jmp 0x50d0e0
push dword [ebp - 0x14]
push 0x20
push edi
call fcn.00524810
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
add eax, edi
add esp, 0xc
cmp ecx, 0xd
mov byte [eax], cl
jne 0x50d0dd
cmp dword [ebp - 0x1c], 0
je 0x50d0dd
mov byte [eax], 0xa
and byte [eax + 1], 0
jmp 0x50d0e0
and byte [eax], 0
lea eax, [ebp + 0x14]
push 4
push eax
lea eax, [esi + 0x18]
push eax
call fcn.005244d0
add esp, 0xc
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0x82
mov dword [esi], 0x22
jmp 0x50d6e0
mov ecx, dword [ebp - 0x28]
mov al, byte [ebp - 0x20]
cmp dword [ebp - 0x34], 2
push 1
mov byte [ecx], al
pop eax
je 0x50d126
cmp dword [ebx + 0x20c], edi
je 0x50d12f
mov al, byte [ebp - 0x1f]
push 2
mov byte [esi + 0x19], al
pop eax
and byte [esi + eax + 0x18], 0
inc eax
cmp dword [ebx + 0x20c], edi
je 0x50d158
and byte [esi + eax + 0x18], 0
inc eax
cmp dword [ebx + 0x20c], edi
je 0x50d158
mov cx, word [ebp + 0x18]
mov word [esi + eax + 0x18], cx
inc eax
inc eax
jmp 0x50d170
mov edx, dword [ebp + 0x18]
mov cx, dx
shr cx, 8
test cl, cl
je 0x50d16b
mov byte [esi + eax + 0x18], cl
inc eax
mov byte [esi + eax + 0x18], dl
inc eax
and byte [esi + eax + 0x18], 0
inc eax
cmp dword [ebx + 0x20c], edi
je 0x50d184
and byte [esi + eax + 0x18], 0
inc eax
add eax, 0x20
mov dword [esi + 8], 3
mov dword [esi], eax
jmp 0x50d6e0
cmp dword [ebp - 0x24], 0x63
jg 0x50d288
cmp dword [ebp - 0x18], 5
je 0x50d288
cmp dword [ebp - 0x18], 6
je 0x50d288
push dword [ebp - 0x28]
push dword [ebx + 0x1c]
call fcn.00463754
mov edi, dword [ebp - 0x24]
and byte [edi + esi + 0x18], 0
cmp dword [ebx + 0x20c], 0
je 0x50d1d5
inc edi
and byte [edi + esi + 0x18], 0
push 1
pop eax
cmp dword [ebp - 0x18], eax
jne 0x50d280
mov ecx, dword [ebp + 0x18]
cmp ecx, 8
je 0x50d280
cmp ecx, 0x2e
jne 0x50d1ff
cmp dword [ebx + 0x294], 0
jne 0x50d280
cmp dword [ebp - 0x1c], 0
mov dword [esi + 8], 3
lea eax, [edi + 1]
jne 0x50d242
cmp ecx, 0xd
jne 0x50d242
cmp dword [ebx + 0x20c], 0
je 0x50d238
movsx cx, byte [ebp - 0xd]
mov word [esi + eax + 0x18], cx
inc eax
inc eax
and byte [esi + eax + 0x18], 0
add edi, 0x21
mov dword [esi], edi
jmp 0x50d6e0
mov cl, byte [ebp - 0xd]
mov byte [esi + eax + 0x18], cl
inc eax
jmp 0x50d229
xor edx, edx
cmp dword [ebx + 0x20c], edx
je 0x50d255
mov word [esi + eax + 0x18], cx
inc eax
inc eax
jmp 0x50d25a
mov byte [esi + eax + 0x18], cl
inc eax
cmp ecx, 0xd
jne 0x50d229
cmp dword [ebp - 0x1c], edx
je 0x50d229
mov byte [esi + eax + 0x18], 0xa
and byte [esi + eax + 0x19], 0
cmp dword [ebx + 0x20c], edx
lea eax, [esi + eax + 1]
je 0x50d22e
and byte [eax + 0x19], 0
jmp 0x50d22e
mov dword [esi + 8], eax
add edi, 0x1f
jmp 0x50d231
cmp dword [ebp - 0x24], edx
jne 0x50d2a8
cmp dword [ebp - 0x18], 6
jne 0x50d298
cmp dword [ebp + 0x14], edx
jne 0x50d2b4
xor edi, edi
mov dword [esi], 0x1d
mov dword [ebp - 0x24], edi
jmp 0x50d346
cmp dword [ebp - 0x18], 6
jne 0x50d2c0
cmp dword [ebp + 0x14], 0
je 0x50d2c0
push dword [ebp + 0x1c]
call fcn.00525390
pop ecx
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x20], eax
je 0x50d03d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x50d03d
cmp dword [ebp - 0x18], 6
jne 0x50d307
cmp dword [ebp + 0x14], 0
je 0x50d307
push edi
push dword [ebp + 0x1c]
push eax
call fcn.005244d0
add esp, 0xc
jmp 0x50d312
push dword [ebp + 0x10]
push dword [ebx + 0x1c]
call fcn.00463754
mov eax, dword [ebp + 0x10]
push 4
add eax, edi
and byte [eax], 0
and byte [eax + 1], 0
lea eax, [ebp + 0x20]
push eax
push dword [ebp - 0x28]
call fcn.005244d0
add esp, 0xc
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 4
mov dword [esi], 0x21
pop edi
xor edx, edx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x18]
cmp eax, 1
jne 0x50d3a9
mov ecx, dword [ebp + 0x18]
cmp ecx, 8
je 0x50d3b3
cmp ecx, 0x2e
jne 0x50d363
cmp dword [ebx + 0x294], edx
jne 0x50d3b3
cmp dword [ebp - 0x1c], edx
mov dword [esi + 8], 0x43
jne 0x50d389
cmp ecx, 0xd
jne 0x50d389
mov cl, byte [ebp - 0xd]
lea eax, [edi + esi]
mov byte [eax + 0x18], cl
and byte [eax + 0x19], 0
add dword [esi], 2
jmp 0x50d6e0
lea eax, [edi + esi]
cmp ecx, 0xd
mov byte [eax + 0x18], cl
jne 0x50d37d
cmp dword [ebp - 0x1c], edx
je 0x50d37d
mov byte [eax + 0x19], 0xa
and byte [eax + 0x1a], 0
add dword [esi], 3
jmp 0x50d6e0
cmp eax, 5
je 0x50d3c7
cmp eax, 6
je 0x50d3c7
cmp edi, edx
je 0x50d002
mov dword [esi + 8], 0x41
jmp 0x50d6e0
cmp eax, 5
mov dword [ebp - 0x2c], edx
jne 0x50d40d
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp dword [ebx + 0x20c], 0
mov dword [ebp - 0x2c], eax
je 0x50d3e8
push 0xd
jmp 0x50d3ea
push 1
call fcn.0046944c
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
jne 0x50d40d
cmp dword [ebp - 0x2c], eax
je 0x50d402
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
jne 0x50d3bb
and dword [esi], edi
jmp 0x50d6e0
lea ecx, [ebp - 0x6c]
call fcn.004eb2ff
cmp dword [ebp - 0x18], 5
mov dword [ebp - 4], 1
jne 0x50d441
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp + 0x10], edi
cmp dword [ebx + 0x20c], 0
push edi
je 0x50d45c
call fcn.00524463
jmp 0x50d461
mov edi, dword [ebp + 0x1c]
cmp dword [ebp - 0x18], 6
mov dword [ebp + 0x10], edi
jne 0x50d430
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50d430
mov dword [ebp + 0x18], eax
jmp 0x50d4f7
call fcn.00525390
cmp dword [ebp - 0x18], 5
pop ecx
mov dword [ebp + 0x18], eax
jne 0x50d4f7
mov eax, dword [0x62ae3c]
cmp dword [eax + 0x28f0], 0
je 0x50d4ed
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [ebx + 0x3c]
push dword [ecx + 0x164]
lea ecx, [ebp - 0x9c]
push dword [ebx + 0x20c]
push eax
push edi
call fcn.004eb35b
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.004b8ede
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0044611a
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0044611a
cmp byte [ebp - 0x44], 0
je 0x50d4ed
cmp dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x68]
jne 0x50d4df
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x6c]
mov dword [ebp + 0x10], eax
call fcn.004b8e86
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x50d4f7
add dword [ebp + 0x18], eax
cmp dword [ebx + 0x20c], 0
mov eax, dword [ebp + 0x18]
je 0x50d509
lea eax, [eax + eax + 2]
jmp 0x50d50a
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x20], eax
jne 0x50d52f
mov ecx, dword [ebx + 0x3c]
push 0xffffffffffffffff
push eax
push eax
call fcn.0050ddcb
mov dword [ebp - 4], 4
jmp 0x50d552
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
mov dword [ebp - 0x34], edi
jne 0x50d56b
mov ecx, dword [ebx + 0x3c]
push 0xffffffffffffffff
push eax
push eax
call fcn.0050ddcb
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.0044611a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0044611a
jmp case.0x50cd41.4
cmp dword [ebp - 0x18], 6
jne 0x50d599
cmp dword [ebp + 0x14], 0
je 0x50d608
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
sub eax, dword [ebx + 0xf0]
push eax
push edi
push dword [ebx + 0x1c]
call fcn.004637ea
add esp, 0x10
jmp 0x50d628
cmp dword [ebp - 0x18], 5
jne 0x50d608
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x50d608
cmp dword [ebx + 0x20c], eax
je 0x50d5e4
cmp dword [ebp - 0x14], eax
jle 0x50d5ca
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
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 - 0x34]
mov eax, dword [ebp - 0x14]
mov ecx, eax
imul ecx, ecx, 0x7fffffff
add ecx, dword [ebp + 0x18]
lea eax, [edi + eax*2]
shl ecx, 1
push ecx
push dword [ebp + 0x10]
push eax
jmp 0x50d620
push dword [ebp - 0x14]
push 0x20
push edi
call fcn.00524810
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
sub ecx, eax
add eax, edi
push ecx
push dword [ebp + 0x10]
push eax
call fcn.005244d0
add esp, 0x18
jmp 0x50d628
cmp dword [ebx + 0x20c], 0
je 0x50d619
mov eax, dword [ebp + 0x18]
add eax, eax
push eax
jmp 0x50d61c
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push edi
call fcn.005244d0
add esp, 0xc
cmp dword [ebx + 0x20c], 0
mov eax, dword [ebp + 0x18]
je 0x50d63b
and word [edi + eax*2], 0
jmp 0x50d63f
and byte [edi + eax], 0
lea eax, [ebp + 0x20]
push 4
push eax
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi + 0x18]
push eax
call fcn.005244d0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0xc
push dword [ebp + 0x20]
call edi
cmp dword [ebp - 0x18], 5
jne 0x50d677
push dword [ebp - 0x30]
call edi
cmp dword [ebp - 0x2c], 0
je 0x50d677
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x24], 0
jne 0x50d686
mov dword [esi + 8], 0x82
jmp 0x50d68d
mov dword [esi + 8], 0xc3
add dword [esi], 4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 6
call fcn.0044611a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0044611a
jmp 0x50d6e0
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [esi + 8], eax
jle case.0x50cd41.4
cmp eax, 6
jg case.0x50cd41.4
push 0x20
mov dword [esi], 0x3d
push dword [ebp + 0x20]
jmp 0x50d6d5
lea eax, [ebp + 0x1c]
push 4
mov dword [esi], 0x21
push eax
push dword [ebp - 0x28]
call fcn.005244d0
add esp, 0xc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi]
add dword [eax + 0x49c], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 0x49c]
mov dword [eax + 0x4a0], ecx
mov eax, dword [ebx + 0x3c]
push dword [eax + 0x4a8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c