Function at 0x10013660
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068f5d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 8
ja case.default.0x10013699
jmp dword [eax*4 + 0x10013c8c]
lea ecx, [ebp - 0x28]
call fcn.10021ff0
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jbe 0x100136d6
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x100136c2
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax + edi]
mov ecx, esi
push eax
push 4
call fcn.10013660
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x100136b6
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb case.default.0x10013699
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001370b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013c7b
push ecx
push edx
call fcn.10042d22
add esp, 8
jmp case.default.0x10013699
mov eax, dword [esi + 0x64]
test eax, eax
je 0x10013c5b
xor ecx, ecx
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x40], cl
mov dword [ebp - 4], 1
lea ecx, [esi + 0x28]
cmp byte [esi + 0x6c], bl
je 0x10013785
lea eax, [ebp - 0x40]
cmp eax, ecx
je 0x1001377d
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x10013763
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.10006b20
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x30]
jmp 0x1001380a
mov esi, dword [ebp - 0x40]
jmp 0x1001380a
test eax, eax
jns 0x100137b8
cmp dword [ecx + 0x14], 0x10
jb 0x10013791
mov ecx, dword [ecx]
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
add eax, ecx
add eax, dword [esi + 0x64]
jmp 0x100137dd
cmp dword [ecx + 0x14], 0x10
jb 0x100137c0
mov ecx, dword [ecx]
xor edx, edx
push eax
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
mov dword [ebp - 0x28], edx
add eax, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
push eax
lea ecx, [ebp - 0x28]
call fcn.10008600
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10013889
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + 1]
push eax
push 2
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10013839
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10013889
push dword [ebp - 0x44]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.10044b10
add esp, 0xc
lea eax, [ebp - 0x40]
cmp edi, 0x10
jb 0x10013858
mov eax, esi
push dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.10044580
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 0x10
jb 0x10013c5b
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x100138b1
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013c85
push edi
push esi
call fcn.10042d22
add esp, 8
jmp 0x10013c5b
mov ecx, dword [esi + 0x50]
cmp dword [esi + 0x5c], ecx
jne 0x100138d2
mov eax, dword [esi + 0x58]
add eax, ecx
cmp eax, dword [esi + 0x38]
je 0x100138df
push 0
push 3
mov ecx, esi
call fcn.10013660
jmp case.0x10013699.7
neg ecx
mov byte [esi + 0x6c], 1
mov dword [esi + 0x64], ecx
jmp 0x10013c5b
cmp dword [esi + 0x64], 0
je 0x10013c5b
push 0
push 6
jmp 0x10013afd
mov edx, dword [esi + 0x5c]
xor ebx, ebx
mov edi, dword [esi + 0x58]
mov ecx, dword [esi + 0x64]
lea eax, [edx - 1]
add eax, edi
test eax, eax
setle bl
dec ebx
and ebx, eax
test ecx, ecx
je 0x10013a6b
cmp byte [esi + 0x6c], 0
je 0x10013a1a
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
lea ecx, [esi + 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10013985
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001397b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013c85
push ecx
push edx
call fcn.10042d22
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
lea ecx, [esi + 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100139e0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100139d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013c85
push ecx
push edx
call fcn.10042d22
add esp, 8
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0x6c], 0
mov dword [esi + 0x64], 0
cmp byte [esi + 0x6e], 0
lea ebx, [esi + 0x58]
je 0x10013be6
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10013bd0
dec eax
mov dword [esi + 0x5c], eax
jmp 0x10013bd9
mov eax, ecx
mov dword [esi + 0x64], 0
cdq
mov edi, eax
xor edi, edx
sub edi, edx
test ecx, ecx
jns 0x10013a4b
test edi, edi
jle 0x10013c5b
push 0
push 0
mov ecx, esi
call fcn.10013660
sub edi, 1
jne 0x10013a36
jmp 0x10013c5b
add dword [esi + 0x5c], ecx
test edi, edi
jle 0x10013c5b
push 0
push 0
mov ecx, esi
call fcn.10013660
sub edi, 1
jne 0x10013a56
jmp 0x10013c5b
test edi, edi
jne 0x10013a73
test edx, edx
je case.default.0x10013699
lea eax, [esi + 0x28]
mov edi, dword [eax + 0x10]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x44], ecx
cmp edi, ebx
jb 0x10013c80
mov edx, edi
sub edx, ebx
cmp edx, 1
jb 0x10013a95
mov edx, 1
cmp dword [eax + 0x14], 0x10
jb 0x10013a9d
mov eax, dword [eax]
lea ecx, [eax + ebx]
sub edi, edx
mov eax, edi
sub eax, ebx
inc eax
push eax
lea eax, [edx + ecx]
push eax
push ecx
call fcn.10044580
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, esi
push 0
push 2
mov dword [eax], edi
call fcn.10013660
jmp 0x10013c5d
cmp dword [esi + 0x64], 0
je 0x10013ade
push 0
push 0
call fcn.10013660
jmp 0x10013c5d
mov ecx, dword [esi + 0x5c]
xor eax, eax
add ecx, dword [esi + 0x58]
test ecx, ecx
setle al
dec eax
and eax, ecx
cmp eax, dword [esi + 0x38]
je 0x10013c5b
push 0
push 3
mov ecx, esi
call fcn.10013660
push 0
push 0
mov ecx, esi
call fcn.10013660
jmp 0x10013c5b
mov byte [esi + 0x6e], 1
jmp 0x100139ee
mov word [esi + 0x6c], pe_nt_image_headers32
jmp 0x100139f2
cmp dword [esi + 0x38], 0xff
jae 0x10013bc9
cmp dword [esi + 0x64], 0
je 0x10013b42
push 0
push 0
call fcn.10013660
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push 1
push eax
call fcn.10008600
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov eax, dword [esi + 0x5c]
lea ecx, [esi + 0x28]
add eax, dword [esi + 0x58]
push eax
call fcn.10013ee0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10013bb9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013baf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013c85
push ecx
push edx
call fcn.10042d22
add esp, 8
push 0
push 3
mov ecx, esi
call fcn.10013660
jmp 0x10013c5d
xor al, al
jmp 0x10013c5d
mov eax, dword [ebx]
test eax, eax
je 0x10013bd9
dec eax
mov dword [ebx], eax
push 0
mov ecx, esi
call fcn.10013480
mov byte [esi + 0x6e], 0
cmp byte [esi + 0x6d], 0
je 0x10013c5b
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
jne 0x10013c0f
mov eax, dword [esi + 0x58]
lea ebx, [esi + 0x58]
add eax, ecx
cmp eax, dword [esi + 0x38]
je 0x10013c15
mov eax, dword [esi + 0x50]
lea ebx, [esi + 0x58]
inc eax
cmp ecx, eax
jge 0x10013c15
lea ebx, [esi + 0x58]
lea eax, [ecx + 1]
mov dword [esi + 0x5c], eax
push 0
mov ecx, esi
call fcn.10013480
mov eax, dword [esi + 0x5c]
cmp eax, dword [esi + 0x50]
jle 0x10013c57
mov edi, dword [esi + 0x60]
mov ecx, esi
inc dword [ebx]
push 1
call fcn.10013480
mov eax, dword [esi + 0x60]
mov dword [esi + 0x5c], eax
cmp edi, eax
jle 0x10013c57
mov edi, edi
inc dword [ebx]
mov ecx, esi
push 1
mov edi, eax
call fcn.10013480
mov eax, dword [esi + 0x60]
mov dword [esi + 0x5c], eax
cmp edi, eax
jg 0x10013c40
mov byte [esi + 0x6d], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10042ce4
mov esp, ebp
pop ebp
ret 8
call fcn.1004fd3c
call fcn.10007df0
call fcn.1004fd3c
mov edi, edi
add byte [ecx], bh
add dword [eax], edx
retf 0x13a