Function at 0x51400a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5c4008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x70a6a4
mov dword [ebp - 0x408], esi
call fcn.0056b0a5
cmp byte [esi + 0x2c], 0
je case.default.0x513e7f
mov eax, dword [ebp + 8]
dec eax
cmp eax, 9
ja case.default.0x513e7f
push ebx
push edi
jmp dword [eax*4 + 0x514294]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x248]
test ecx, ecx
je case.0x513e7f.2
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x18]
mov ebx, dword [0x6cf7a4]
add ebx, 4
cmp dword [ecx + 0x2c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [esi + 0x54]
cvttss2si eax, xmm0
mov dword [ebp - 0x41c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x410], eax
jne 0x513edc
xor ecx, ecx
mov dword [esi + 0x4c], ecx
mov ecx, esi
call fcn.00513c90
jmp case.0x513e7f.2
movzx eax, word [eax]
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x40c], ecx
xor edi, edi
mov dword [ebp - 0x418], esi
mov esi, dword [ebp - 0x408]
xor edx, edx
test ax, ax
je 0x513fcd
mov eax, dword [ebp - 0x410]
xor esi, esi
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x418]
movzx ecx, ax
nop dword [eax]
movzx ecx, cx
mov eax, ecx
cmp eax, dword [ebx + 0xc]
jg 0x513f8f
mov esi, dword [ebx + 0x10]
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 8], 0
mov esi, dword [ebp - 0x40c]
jne 0x513f57
cmp ecx, 0x20
je 0x513f57
mov eax, 0xa0
cmp cx, ax
je 0x513f57
cmp ecx, 1
mov eax, 0x3f
cmovne ecx, eax
movzx eax, cx
mov ecx, dword [ebx + 0x10]
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 8], 0
lea ecx, [ecx + eax*4]
je 0x513f8f
mov eax, dword [ebp - 0x414]
add edi, dword [ecx + 4]
movzx eax, word [eax + 2]
push eax
push ecx
push ebx
call fcn.00506370
mov ecx, edi
mov edx, eax
sub ecx, edx
mov edi, 0
cmovns edi, ecx
jmp 0x513f95
add edi, dword [ebx + 8]
sub edx, dword [ebx + 8]
cmp edi, dword [ebp - 0x41c]
jge 0x513fc1
mov eax, dword [ebp - 0x410]
inc esi
mov dword [ebp - 0x40c], esi
lea eax, [eax + esi*2]
mov dword [ebp - 0x414], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x513f20
mov esi, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x40c]
mov dword [esi + 0x4c], ecx
mov ecx, esi
call fcn.00513c90
jmp case.0x513e7f.2
mov esi, dword [0x5ce53c]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x514001
mov eax, dword [esi + 0x18]
test eax, eax
je 0x514001
push eax
call fcn.004d90c0
test eax, eax
je 0x514001
mov ecx, eax
call fcn.004fc330
mov byte [esi + 0x1c], 0
jmp case.0x513e7f.2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
cmp eax, 0xc
ja case.0x513e7f.2
jmp dword [eax*4 + 0x5142bc]
add dword [esi + 0x4c], 0xffffffff
jns 0x51404c
mov ecx, esi
mov dword [esi + 0x4c], 0
call fcn.00513c90
jmp case.0x513e7f.2
mov ecx, dword [esi + 0x50]
inc dword [esi + 0x4c]
call fcn.004fef00
cmp dword [esi + 0x4c], eax
jle 0x51404c
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.00513c90
jmp case.0x513e7f.2
mov ecx, dword [esi + 0x50]
call fcn.004fef00
mov edx, dword [esi + 0x4c]
cmp eax, edx
jle case.0x513e7f.2
mov ecx, dword [esi + 0x50]
sub eax, edx
add eax, eax
push eax
lea ecx, [ecx + edx*2]
lea eax, [ecx + 2]
push eax
push ecx
call fcn.00554460
add esp, 0xc
jmp 0x514275
mov ecx, dword [esi + 0x50]
call fcn.004fef00
mov edx, dword [esi + 0x4c]
test edx, edx
jle case.0x513e7f.2
mov ecx, dword [esi + 0x50]
sub eax, edx
lea eax, [eax*2 + 2]
push eax
lea ecx, [ecx + edx*2]
push ecx
lea eax, [ecx - 2]
push eax
call fcn.00554460
add esp, 0xc
dec dword [esi + 0x4c]
jmp 0x514275
mov ecx, esi
mov dword [esi + 0x4c], 0
call fcn.00513c90
jmp case.0x513e7f.2
mov ecx, dword [esi + 0x50]
call fcn.004fef00
mov ecx, esi
mov dword [esi + 0x4c], eax
call fcn.00513c90
jmp case.0x513e7f.2
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x513e7f.2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x514208
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x514208
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514122
sub ecx, ebx
lea eax, [ebp - 0x404]
inc ecx
cmp ecx, 0x400
jle 0x51414c
push 0x3ff
push edx
push eax
call fcn.00554b70
mov byte [ebp - 5], 0
jmp 0x514154
push ecx
push edx
push eax
call fcn.00554b70
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov bl, byte [ebp - 0x404]
test bl, bl
je 0x514275
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
nop
cmp bl, 0x20
jl 0x5141f4
mov ecx, dword [esi + 0x50]
call fcn.004fef00
mov edx, eax
cmp edx, dword [esi + 0x48]
jge 0x514275
mov edi, dword [esi + 0x4c]
cmp edi, edx
jne 0x5141b6
mov eax, dword [esi + 0x50]
movsx cx, bl
mov word [eax + edx*2], cx
xor ecx, ecx
mov eax, dword [esi + 0x50]
mov word [eax + edx*2 + 2], cx
jmp 0x5141eb
jge 0x5141e5
mov eax, dword [esi + 0x50]
sub edx, edi
lea ecx, [eax + edi*2]
lea eax, [edx*2 + 2]
push eax
push ecx
lea eax, [ecx + 2]
push eax
call fcn.00554460
mov ecx, dword [esi + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x50]
movsx dx, bl
mov word [eax + ecx*2], dx
jmp 0x5141eb
lea eax, [edx - 1]
mov dword [esi + 0x4c], eax
inc dword [esi + 0x4c]
mov eax, dword [ebp - 0x408]
mov bl, byte [eax + 1]
inc eax
mov dword [ebp - 0x408], eax
test bl, bl
jne 0x514180
jmp 0x514275
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp case.0x513e7f.2
mov ecx, dword [esi + 0x50]
call fcn.004fef00
mov edx, eax
cmp edx, dword [esi + 0x48]
jge case.0x513e7f.2
mov edi, dword [esi + 0x4c]
cmp edi, edx
jne 0x51423d
mov ecx, dword [esi + 0x50]
mov ax, word [ebp + 0xc]
mov word [ecx + edx*2], ax
xor ecx, ecx
mov eax, dword [esi + 0x50]
mov word [eax + edx*2 + 2], cx
jmp 0x514272
jge 0x51426c
mov eax, dword [esi + 0x50]
sub edx, edi
lea ecx, [eax + edi*2]
lea eax, [edx*2 + 2]
push eax
push ecx
lea eax, [ecx + 2]
push eax
call fcn.00554460
mov edx, dword [esi + 0x4c]
add esp, 0xc
mov ecx, dword [esi + 0x50]
mov ax, word [ebp + 0xc]
mov word [ecx + edx*2], ax
jmp 0x514272
lea eax, [edx - 1]
mov dword [esi + 0x4c], eax
inc dword [esi + 0x4c]
mov ecx, esi
call fcn.00513d80
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00551170
mov esp, ebp
pop ebp
ret 0xc