Function at 0x571f90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ecx + 0x118]
lea edx, [ecx + 0x1dc]
push edi
mov dword [ebp - 0xc], ecx
lea edi, [edx + 2]
jmp 0x571fb0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x571fb0
mov eax, dword [ecx + 0x10c]
sub edx, edi
sar edx, 1
mov dword [ebp - 4], eax
lea ebx, [edx + 2]
mov dword [ebp - 8], ebx
test eax, eax
je 0x572082
mov edx, esi
lea ecx, [edx + 2]
jmp 0x571fe0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x571fe0
sub edx, ecx
mov ecx, esi
sar edx, 1
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x571ff4
sub ecx, edi
sar ecx, 1
inc ecx
lea edi, [esi + ecx*2]
mov esi, edi
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x572010
sub esi, ecx
mov ecx, edi
sar esi, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572024
sub ecx, ebx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov ecx, edi
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572040
sub ecx, ebx
mov ebx, dword [ebp - 8]
sar ecx, 1
add ebx, 7
lea eax, [ecx + esi]
add eax, edx
add ebx, eax
mov eax, edi
mov dword [ebp - 8], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x572064
sub eax, edx
sar eax, 1
dec dword [ebp - 4]
lea esi, [eax + 1]
lea esi, [edi + esi*2]
jne 0x571fd6
inc ebx
mov dword [ebp - 8], ebx
add ebx, ebx
push ebx
call fcn.005421d4
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x572226
push ebx
push 0
push eax
call fcn.00546fa0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [eax + 0x118]
lea edx, [eax + 0x1dc]
mov edi, edx
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x5720c0
sub edi, ecx
sar edi, 1
lea esi, [edi + edi]
push esi
push edx
push dword [ebp - 4]
call fcn.005495a0
mov eax, dword [ebp - 4]
add edi, 2
mov dword [esi + eax], 0xa000d
mov esi, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp dword [eax + 0x10c], 0
lea edi, [esi + edi*2]
mov dword [ebp - 0x10], 0
jbe 0x5721c5
mov esi, ebx
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x572110
sub esi, ecx
sar esi, 1
add esi, esi
push esi
push ebx
push edi
call fcn.005495a0
add edi, esi
add esi, 2
add ebx, esi
mov esi, ebx
add esp, 0xc
mov dword [edi], 0x20003a
add edi, 4
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x572141
sub esi, ecx
sar esi, 1
add esi, esi
push esi
push ebx
push edi
call fcn.005495a0
mov eax, dword [0x60f034]
add edi, esi
add esi, 2
add ebx, esi
mov dword [edi], eax
mov ax, word [0x60f038]
mov esi, ebx
add esp, 0xc
mov word [edi + 4], ax
add edi, 6
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x572180
sub esi, ecx
sar esi, 1
add esi, esi
push esi
push ebx
push edi
call fcn.005495a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add edi, esi
add ebx, 2
mov dword [edi], 0xa000d
inc eax
add esp, 0xc
add ebx, esi
add edi, 4
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx + 0x10c]
jb 0x572108
mov esi, dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebp - 8]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x650cb0], eax
test eax, eax
je 0x57221d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.00543349
add esp, 0xc
push dword [0x650cb0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x650cb0]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call fcn.00541b50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret