Function at 0x1008c420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [0x101b6fa8]
mov eax, ecx
push esi
mov esi, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
push edi
test esi, esi
jne 0x1008c3ee
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1008c3e2
sub esi, edx
mov dword [ebp - 0x10], esi
mov edi, dword [ebx + 0x2ea8]
lea eax, [ebx + 0x2ea4]
lea edx, [esi + 1]
cmp edx, edi
jle 0x1008c436
test edi, edi
je 0x1008c415
mov eax, edi
cdq
sub eax, edx
lea edx, [esi + 1]
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x1008c41a
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [ebx + 0x2ea4]
push eax
call fcn.1008d7a0
lea edx, [esi + 1]
lea eax, [ebx + 0x2ea4]
mov dword [eax], edx
mov ecx, dword [ebx + 0x2eac]
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + esi]
push ecx
mov dword [ebp - 4], eax
call fcn.100fe470
mov edx, dword [ebp - 4]
xor esi, esi
add esp, 0xc
mov byte [edx], 0
cmp dword [ebx + 0x2eb0], esi
jle 0x1008c495
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2eb8]
add eax, edi
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1008c486
push eax
push ebx
call ecx
add esp, 8
inc esi
add edi, 0x24
cmp esi, dword [ebx + 0x2eb0]
jl 0x1008c470
mov edx, dword [ebp - 4]
xor eax, eax
xor edi, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
cmp eax, edx
jae 0x1008c5c5
nop dword [eax]
mov al, byte [ecx]
cmp al, 0xa
je 0x1008c619
cmp al, 0xd
je 0x1008c619
mov esi, ecx
cmp ecx, edx
jae 0x1008c4d7
mov al, byte [esi]
cmp al, 0xa
je 0x1008c4d7
cmp al, 0xd
je 0x1008c4d7
inc esi
cmp esi, edx
jb 0x1008c4c8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x1008c5b7
cmp al, 0x5b
jne 0x1008c59d
cmp esi, ecx
jbe 0x1008c59d
cmp byte [esi - 1], 0x5d
lea eax, [esi - 1]
mov dword [ebp - 0x18], eax
jne 0x1008c59d
inc ecx
mov byte [eax], 0
sub eax, ecx
mov dword [ebp - 0x20], ecx
push eax
push 0x5d
push ecx
call fcn.100febc0
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1008c5b4
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 1]
sub edx, ecx
push edx
push 0x5b
push ecx
call fcn.100febc0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1008c5b4
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov edi, dword [0x101b6fa8]
push 0
mov byte [eax], 0
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call fcn.1007d1b0
mov edx, dword [edi + 0x2eb0]
add esp, 4
xor ecx, ecx
test edx, edx
jle 0x1008c57e
mov edi, dword [edi + 0x2eb8]
cmp dword [edi + 4], eax
je 0x1008c587
inc ecx
add edi, 0x24
cmp ecx, edx
jl 0x1008c571
xor edi, edi
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x1008c5b4
test edi, edi
je 0x1008c580
push dword [ebp - 0x1c]
mov eax, dword [edi + 0x10]
push edi
push ebx
call eax
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x1008c5b4
test edi, edi
je 0x1008c5b7
mov eax, dword [ebp - 8]
test eax, eax
je 0x1008c5b7
push ecx
push eax
mov eax, dword [edi + 0x14]
push edi
push ebx
call eax
add esp, 0x10
mov edx, dword [ebp - 4]
lea ecx, [esi + 1]
cmp ecx, edx
jb 0x1008c4b0
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov byte [ebx + 0x2e9d], 1
push dword [ebp - 0x14]
push eax
call fcn.100fe470
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x2eb0], esi
jle 0x1008c612
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2eb8]
add eax, edi
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1008c606
push eax
push ebx
call ecx
add esp, 8
inc esi
add edi, 0x24
cmp esi, dword [ebx + 0x2eb0]
jl 0x1008c5f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x1008c4b0