Function at 0x1005b65
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
push esi
mov esi, dword [0x1001278]
push 1
call esi
test eax, eax
jne 0x1005b9f
push 2
call esi
test eax, eax
jne 0x1005b9f
push 3
call esi
test eax, eax
jne 0x1005b9f
push 0xe
call esi
test eax, eax
jne 0x1005b9f
push 0xd
call esi
test eax, eax
je 0x1005bae
push dword [0x1009448]
call fcn.01002a5f
test eax, eax
jne 0x1005bb5
xor eax, eax
jmp 0x1005fda
push 0x200
push 0x42
call dword [0x1001138]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x1005fd3
push ebx
push edi
push dword [0x1009448]
call dword [0x10011b0]
mov edi, dword [0x1001084]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [ebp - 0x10]
mov ebx, eax
call edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [0x1009448]
call dword [0x10011b4]
push esi
push 1
push 1
push 0x40
push 0x40
call dword [0x1001080]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x1005c23
push 0x10022fc
call fcn.01004c8a
pop ecx
push dword [ebp - 0x10]
mov edi, dword [0x100107c]
push ebx
call edi
push 0x40
mov dword [ebp - 0x30], eax
pop eax
push 0xff0062
push eax
push eax
push esi
push esi
push ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call dword [0x1001078]
push 0xe
call dword [0x1001278]
test eax, eax
je 0x1005ccc
push 0xe
call dword [0x100127c]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005cc2
lea ecx, [ebp - 0xac]
push ecx
push 0x64
push eax
call dword [0x1001074]
push ebx
call dword [0x1001070]
push 7
push ebx
call dword [0x100106c]
push esi
push 0x40
push 0x40
push ebx
call dword [0x10010c8]
push esi
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push ebx
call dword [0x10010bc]
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xc]
push ebx
call dword [0x10010b8]
jmp 0x1005db5
push 0x10022d0
jmp 0x1005dc8
push 3
call dword [0x1001278]
test eax, eax
je 0x1005dda
push 3
call dword [0x100127c]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005dd3
push eax
call dword [0x1001140]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1005dc3
push ebx
call dword [0x1001070]
mov eax, dword [ebp - 4]
push dword [eax]
push ebx
call dword [0x100106c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ecx, eax
mov dword [ebp - 8], eax
push esi
jl 0x1005d5d
shl eax, 6
cdq
idiv ecx
push eax
push 0x40
push ebx
call dword [0x10010c8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
shl eax, 6
cdq
idiv dword [ecx + 4]
push esi
push 0x40
pop ecx
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push esi
push ebx
call dword [0x10010b4]
mov esi, dword [ebp - 4]
jmp 0x1005d93
mov eax, ecx
shl eax, 6
cdq
idiv dword [ebp - 8]
push 0x40
push eax
push ebx
call dword [0x10010c8]
push esi
push esi
mov esi, dword [ebp - 4]
mov eax, dword [esi + 4]
shl eax, 6
cdq
idiv dword [esi + 8]
push 0x40
pop ecx
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [0x10010b4]
push dword [esi + 0xc]
push ebx
call dword [0x10010b0]
test eax, eax
jne 0x1005dac
push 0x10022b8
call fcn.01004c8a
pop ecx
push dword [ebp - 0xc]
call dword [0x100113c]
push 0xffffffffffffffff
push ebx
call dword [0x10010ac]
jmp 0x1005f71
push 0x1002298
call fcn.01004c8a
pop ecx
jmp 0x1005f71
push 0x100227c
jmp 0x1005dc8
push 2
call dword [0x1001278]
test eax, eax
je 0x1005e51
push 2
call dword [0x100127c]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1005f71
lea ecx, [ebp - 0x48]
push ecx
push 0x18
push eax
call dword [0x10010e4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call edi
push 3
push ebx
mov dword [ebp - 0xc], eax
call dword [0x10010a8]
push 0xcc0020
push dword [ebp - 0x40]
mov dword [ebp - 8], eax
push dword [ebp - 0x44]
push esi
push esi
push dword [ebp - 0x14]
push 0x40
push 0x40
push esi
push esi
push ebx
call dword [0x10010c4]
push dword [ebp - 8]
push ebx
call dword [0x10010a8]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call edi
jmp 0x1005f71
push 1
call dword [0x1001278]
test eax, eax
je 0x1005edc
push 1
call dword [0x100127c]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005f71
push eax
call dword [0x1001140]
push esi
mov dword [ebp - 4], eax
call dword [0x10010cc]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [0x10011b8]
push 0x1002270
push 0x22
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x190
push esi
push esi
push esi
push 0xfffffffffffffffa
call dword [0x10010d0]
push eax
push ebx
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [0x100111c]
push eax
push dword [ebp - 4]
push ebx
call dword [0x10011bc]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 0x18]
jmp 0x1005f62
push 0xd
call dword [0x1001278]
test eax, eax
je 0x1005f71
push 0xd
call dword [0x100127c]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005f71
push eax
call dword [0x1001140]
push esi
mov dword [ebp - 4], eax
call dword [0x10010cc]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [0x10011b8]
push 0x1002270
push 0x22
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x190
push esi
push esi
push esi
push 0xfffffffffffffffa
call dword [0x10010d0]
push eax
push ebx
mov dword [ebp - 8], eax
call edi
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [0x100110c]
push eax
push dword [ebp - 4]
push ebx
call dword [0x10011c0]
push dword [ebp - 0x18]
push ebx
call edi
push dword [ebp - 8]
call dword [0x10010d4]
push dword [ebp - 0xc]
call dword [0x100113c]
push dword [ebp - 0x30]
push ebx
call edi
mov esi, dword [0x10010d8]
push ebx
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x1c]
call dword [0x1001140]
push eax
mov esi, 0x200
push esi
push dword [ebp - 0x10]
call dword [0x10010dc]
cmp eax, esi
pop edi
pop ebx
je 0x1005faf
push 0x1002258
call fcn.01004c8a
pop ecx
push dword [ebp - 0x1c]
call dword [0x100113c]
push dword [ebp - 0x1c]
push dword [0x100944c]
call dword [0x10011f0]
push dword [ebp - 0x10]
call dword [0x10010d4]
xor esi, esi
inc esi
call fcn.01002aa5
mov eax, esi
pop esi
leave
ret