Function at 0x10001000
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
cmp dword [0x1001bf44], 0
push edi
mov edi, eax
je 0x100011f0
cmp dword [edi + 0x5c], 0
push esi
mov esi, 0x2c
je 0x10001040
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [edi + 0x5c]
lea esi, [eax + edx*2 + 0x3b]
cmp dword [edi + 0x64], 0
je 0x1000105b
mov ecx, dword [edi + 0x60]
push 0
xor edx, edx
call fcn.1000a4c0
mov ecx, dword [edi + 0x64]
add eax, esi
lea esi, [eax + ecx*2 + 0xf]
cmp word [edi + 0xac], 0
lea eax, [edi + 0xac]
mov dword [esp + 0xc], eax
je 0x10001072
add esi, 0x14
push ebp
push esi
push 0x42
lea ebp, [esi - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x100011ee
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x100011e6
mov dword [ebx], 0x93548508
mov dword [ebx + 4], 0x20
mov eax, dword [edi + 0x50]
test eax, 0x8000
je 0x100010d1
mov edx, dword [edi + 0x30]
sub edx, dword [edi + 0x28]
mov dword [ebx + 8], edx
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x2c]
mov dword [ebx + 0x10], 0x400
mov dword [ebx + 0xc], eax
jmp 0x100010eb
test eax, 0x4000
je 0x100010eb
mov ecx, dword [edi + 0x38]
mov dword [ebx + 8], ecx
mov edx, dword [edi + 0x3c]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], 0x200
mov dword [ebx + 0x1c], ebp
mov eax, dword [edi + 0x5c]
test eax, eax
lea esi, [ebx + 0x20]
je 0x10001120
push 0
push 0
push ebp
push esi
push eax
mov eax, dword [edi + 0x58]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10001120
or ecx, 0xffffffff
sub ecx, eax
mov word [ebx + 0x14], ax
add ebp, ecx
lea esi, [esi + eax + 1]
cmp dword [edi + 0x64], 0
je 0x1000113d
mov ecx, dword [edi + 0x60]
push ebp
mov edx, esi
call fcn.1000a4c0
test eax, eax
je 0x1000113d
mov word [ebx + 0x16], ax
lea esi, [esi + eax + 1]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x10001166
lea ebp, [eax + eax + 2]
mov dword [esi], 1
mov dword [esi + 4], ebp
mov edx, dword [edi + 0x58]
push ebp
push edx
lea eax, [esi + 0xc]
push eax
call fcn.1000ed10
add esp, 0xc
lea esi, [esi + ebp + 0xc]
mov eax, dword [edi + 0x64]
test eax, eax
je 0x1000118b
mov ecx, dword [edi + 0x60]
add eax, 1
push eax
lea edx, [esi + 0xc]
call fcn.1000a380
add eax, eax
mov dword [esi + 4], eax
mov dword [esi], 2
lea esi, [esi + eax + 0xc]
mov edi, dword [esp + 0x14]
cmp word [edi], 0
je 0x100011ca
push 0
push 0
push 4
add ebx, 0x18
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100011b2
mov byte [ebx], al
mov dword [esi], 3
mov dword [esi + 4], 8
mov ecx, dword [edi]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x10], edx
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x1001bf44]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x100011ed
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop ebp
pop esi
pop edi
add esp, 8
ret