Function at 0x10001490
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0xf0
push ebx
mov ebx, dword [esp + 0xf8]
push esi
push 0xb4
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x18], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call fcn.1000f080
mov eax, dword [0x1001bf44]
add esp, 0xc
test eax, eax
je 0x10001a86
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 0x34], esi
je 0x10001a86
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
test eax, 0x4000
jne 0x10001a86
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebp, eax
cmp ebp, 0x1c
jb 0x10001a85
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
mov dword [esp + 0x38], edi
je 0x10001a84
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov ecx, dword [edi]
cmp ecx, 0x93548508
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
jne 0x10001a72
cmp eax, 0x1c
jb 0x10001a72
cmp ebp, eax
jb 0x10001a72
cmp eax, 0x20
jb 0x10001578
mov eax, 0x20
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1000ed10
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
add esp, 0xc
sub ebp, esi
test eax, eax
je 0x1000159f
cmp ebp, eax
jb 0x10001a72
mov ebp, eax
mov cx, word [esp + 0x2c]
mov dx, word [esp + 0x2e]
movsx eax, dx
movsx ebx, cx
add eax, ebx
test cx, cx
mov dword [esp + 0x34], ebp
je 0x100015bd
add eax, 1
test dx, dx
je 0x100015c5
add eax, 1
test eax, eax
je 0x100015d1
cmp ebp, eax
jb 0x10001a72
add esi, eax
sub ebp, eax
add esi, edi
cmp ebp, 0xc
jb 0x1000172d
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 4]
xor edi, edi
add esi, 0xc
sub ebp, 0xc
cmp eax, edi
mov dword [esp + 0xfc], edx
je 0x1000172d
cmp ebx, edi
je 0x10001724
cmp ebp, ebx
jb 0x1000172d
sub ebp, ebx
sub eax, 1
je 0x100016d2
sub eax, 1
je 0x1000167b
sub eax, 1
jne 0x10001722
mov ecx, esi
call fcn.1000b5b0
cmp eax, edi
jge 0x1000163a
xor ebp, ebp
jmp 0x10001722
cmp eax, edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
je 0x10001722
cmp eax, 3
jl 0x1000165a
mov eax, 3
lea edi, [eax + eax]
push edi
lea eax, [esp + 0xf0]
push esi
push eax
call fcn.1000ed10
mov word [esp + edi + 0xf8], 0
jmp 0x1000171f
cmp dword [esp + 0x14], edi
jne 0x10001722
mov ecx, esi
call fcn.1000b5b0
mov edi, eax
test edi, edi
jg 0x1000169f
jge 0x10001722
xor ebp, ebp
jmp 0x10001722
mov edx, dword [0x1001bf40]
lea ecx, [edi + edi + 0xa]
push ecx
push 8
push edx
mov dword [esp + 0xb0], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esp + 0x14], eax
je 0x10001a72
mov ecx, dword [esp + 0x14]
lea eax, [edi + edi]
push eax
push esi
push ecx
jmp 0x1000171a
cmp dword [esp + 0x9c], edi
jne 0x10001722
mov ecx, esi
call fcn.1000b5b0
cmp eax, edi
jg 0x100016ec
jge 0x10001722
xor ebp, ebp
jmp 0x10001722
lea edi, [eax + eax]
lea edx, [edi + 2]
push edx
mov dword [esp + 0xa0], eax
mov eax, dword [0x1001bf40]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esp + 0x98], eax
je 0x10001a72
push edi
push esi
push eax
call fcn.1000ed10
add esp, 0xc
add esi, ebx
cmp ebp, 0xc
jae 0x100015e0
cmp dword [esp + 0x98], 0
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
jne 0x100017b7
cmp word [esp + 0x2c], 0
je 0x100017b7
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
lea edi, [edx + ecx]
mov ecx, edi
call fcn.1000b530
mov esi, eax
test esi, esi
jle 0x100017b7
mov ecx, dword [0x1001bf40]
lea eax, [esi + esi + 2]
push eax
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esp + 0x98], eax
je 0x100017b7
push esi
mov edx, eax
push edx
push esi
push edi
push 0
push 0
call ebp
test eax, eax
mov dword [esp + 0x9c], eax
jne 0x100017b7
mov eax, dword [esp + 0x98]
mov ecx, dword [0x1001bf40]
push eax
push 0
push ecx
call ebx
mov dword [esp + 0x98], 0
cmp dword [esp + 0xa4], 0
jne 0x1000182a
cmp word [esp + 0x2e], 0
je 0x10001863
mov ax, word [esp + 0x2c]
movzx esi, ax
add esi, dword [esp + 0x1c]
add esi, dword [esp + 0x38]
test ax, ax
je 0x100017e5
add esi, 1
mov ecx, esi
call fcn.1000b530
mov edi, eax
test edi, edi
jle 0x10001820
mov eax, dword [0x1001bf40]
lea edx, [edi + edi + 0xa]
push edx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esp + 0x14], eax
je 0x10001820
push edi
mov ecx, eax
push ecx
push edi
push esi
push 0
push 0
call ebp
mov dword [esp + 0xa4], eax
cmp dword [esp + 0xa4], 0
je 0x10001863
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x14]
push edx
mov edx, esi
lea ecx, [esp + 0x44]
call fcn.10002990
mov ecx, esi
mov dword [esp + 0xa4], eax
call fcn.10009f50
test eax, eax
mov dword [esp + 0xa0], eax
jne 0x10001867
mov dword [esp + 0xa4], eax
jmp 0x10001867
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x10001877
mov eax, dword [0x1001bf40]
push esi
push edi
push eax
call ebx
cmp word [esp + 0xec], di
jne 0x100018b4
cmp byte [esp + 0x30], 0
je 0x100018b4
push 4
lea ecx, [esp + 0xf0]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
push edi
push edi
mov byte [esp + 0x4b], 0
call ebp
test eax, eax
jne 0x100018b4
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
xor edx, edx
cmp word [esp + 0xec], di
je 0x100018f0
lea eax, [esp + 0xec]
movzx ecx, word [eax]
cmp cx, 0x41
jb 0x100018dc
cmp cx, 0x5a
ja 0x100018dc
add ecx, 0x20
mov word [eax], cx
add edx, 1
cmp word [esp + edx*2 + 0xec], di
lea eax, [esp + edx*2 + 0xec]
jne 0x100018c7
cmp byte [esp + 0x108], 0
mov edi, dword [esp + 0x104]
je 0x100019c7
mov eax, dword [esp + 0x9c]
cmp eax, dword [edi + 0x5c]
jne 0x100019c7
test eax, eax
je 0x100019ab
mov ecx, dword [edi + 0x58]
mov edx, dword [esp + 0x98]
add eax, eax
cmp eax, 4
jb 0x10001944
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x10001948
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10001930
test eax, eax
je 0x100019a5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10001997
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100019a5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10001997
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100019a5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10001997
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100019a5
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x100019a5
test esi, esi
mov eax, 1
jg 0x100019a7
or eax, 0xffffffff
jmp 0x100019a7
xor eax, eax
test eax, eax
jne 0x100019c7
mov ecx, dword [esp + 0xa4]
cmp ecx, dword [edi + 0x64]
jne 0x100019c7
mov edx, dword [esp + 0xa0]
cmp edx, dword [edi + 0x60]
je 0x10001a72
mov ecx, edi
call fcn.1000b200
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0xa0]
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x50]
mov dword [edi + 0x58], ecx
mov ecx, dword [esp + 0xec]
mov dword [edi + 0x64], edx
mov edx, dword [esp + 0xf0]
and eax, 0xfffff9ff
mov dword [edi + 0xac], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0xb0], edx
or eax, 0x10
xor edx, edx
cmp ecx, edx
mov byte [esp + 0x13], 1
mov dword [edi + 0x50], eax
je 0x10001a40
or eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
cmp dword [edi + 0x58], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0xa0], edx
je 0x10001a72
push edx
push edx
push edx
push edx
xor edx, edx
mov ecx, edi
call fcn.10007e70
test eax, eax
je 0x10001a6d
test dword [edi + 0x50], 0x100
je 0x10001a72
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop ebp
lea ecx, [esp + 0x38]
call fcn.1000b200
mov al, byte [esp + 0xa]
test al, al
jne 0x10001ab1
cmp byte [esp + 0xb], al
je 0x10001ab1
mov esi, dword [ebx + 0x50]
mov ecx, ebx
and esi, 0x10
call fcn.1000b200
or dword [ebx + 0x50], esi
mov al, byte [esp + 0xa]
pop esi
pop ebx
add esp, 0xf0
ret 8