Function at 0x401320
Capabilities:
Open clipboard
Print debug messages
Write clipboard data

Disassembly:
sub esp, 0x9c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x1c0]
push esi
push edi
test eax, eax
je 0x401362
mov ecx, dword [ebx + 0x12c]
mov edx, dword [ecx + eax*8 + 4]
push edx
lea eax, [esp + 0x10]
push str._C_02d
push eax
call fcn.0041861e
add esp, 0xc
jmp 0x40139c
push 0
call fcn.00418511
push eax
call fcn.004185ea
call fcn.004185fc
cdq
mov ecx, 0xe
idiv ecx
mov eax, dword [ebx + 0x12c]
mov ecx, dword [eax + edx*8 + 4]
push ecx
push str._C_02d
lea eax, [eax + edx*8]
lea edx, [esp + 0x1c]
push edx
call fcn.0041861e
add esp, 0x14
lea eax, [ebx + 0x138]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013a4
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4013b2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4013d0
mov ecx, 0xe
mov esi, 0x4263e8
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x401432
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push 0x4263d8
push eax
call fcn.0041861e
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0041869b
add esp, 0x9c
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401440
sub eax, edx
lea edi, [eax + 1]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40149d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push 0x4263d8
push edx
call fcn.0041861e
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0041869b
add esp, 0x9c
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4014ea
call dword [sym.imp.USER32.dll_CloseClipboard]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push 0x4263d8
push ecx
call fcn.0041861e
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0041869b
add esp, 0x9c
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004186b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebx + 0x134], 0
mov ecx, ebx
je 0x401529
mov edx, dword [ebx + 8]
mov eax, dword [edx]
push 0x56
push eax
call fcn.004117d0
jmp 0x401532
push 0x11
push 0x56
call fcn.00411aa0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push 0xd
push edx
mov ecx, ebx
call fcn.004117d0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x9c
ret