Function at 0x30004f5d
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push esi
xor esi, esi
push 4
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [0x30075940], esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, esi
mov dword [ebp - 0x3c], eax
jne 0x30004f9d
mov eax, 0x2714
jmp 0x3000588d
push edi
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30004fd4
movzx eax, word [0x30096370]
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push eax
call edi
mov dword [ebp - 0xc], eax
movzx eax, word [0x3009636c]
push eax
call edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp - 0x3c]
call edi
lea ecx, [ebp - 0x74]
push ecx
push 1
lea ecx, [ebp - 0x60]
push ecx
xor ecx, ecx
cmp dword [ebp - 0xc], esi
sete cl
push ecx
push eax
call fcn.3005097d
push dword [ebp - 0x3c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ebx, esi
je 0x30005014
cmp dword [ebp - 0x74], esi
je 0x3000501b
push 0x16
call fcn.30048b2d
xor eax, eax
jmp 0x3000588b
mov eax, dword [ebp - 0x60]
push dword [ebp - 0x3c]
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 0x64], eax
movsx eax, word [ebp - 0x60]
mov dword [ebp - 8], eax
call edi
cmp dword [ebp - 0x10], 0
mov esi, eax
jne 0x30005045
cmp dword [ebp - 0xc], 0
je 0x3000585d
push 1
call fcn.30047fcd
lea eax, [ebp - 0x5c]
push eax
push 0x6a
push 0x64
push dword [0x30097120]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005861
push dword [ebp - 0x5c]
call edi
mov cx, word [eax + 0x10]
mov eax, dword [eax + 0x16]
push dword [ebp - 0x5c]
xor edx, edx
cmp cx, word [esi]
mov dword [ebp - 0x58], eax
setne dl
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x10], ebx
jne 0x30005880
lea eax, [ebp - 0x40]
push eax
push 0x69
push 0x64
push dword [0x30097120]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005861
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
sub eax, 0x10
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x2c], eax
call fcn.30067a6d
mov ebx, eax
test ebx, ebx
jne 0x3000584f
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
call fcn.3003bb5c
lea eax, [ebp - 0x44]
push eax
push 0x6f
push 0x64
push dword [0x30097120]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x3000584f
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
call fcn.3003bb5c
and dword [ebp - 0x44], ebx
push dword [esi + 0x1c6]
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
push dword [esi + 0xb6]
call fcn.30065901
mov ebx, eax
test ebx, ebx
jne 0x30005840
push dword [ebp - 0x2c]
and dword [ebp - 0x40], eax
call fcn.30065173
and dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x28]
push eax
push 0x67
push 0x64
push dword [0x30097120]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005840
lea eax, [esi + 0xce]
push eax
push 0x67
push 0x64
push dword [esi + 0x26]
call fcn.3003a67d
mov ebx, eax
test ebx, ebx
jne 0x30005840
cmp dword [ebp - 0xc], eax
je 0x300051d7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x470]
push eax
push esi
call fcn.30004b7f
mov ebx, eax
test ebx, ebx
jne 0x30005840
push eax
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [esi + 0x26]
push dword [ebp + 8]
call fcn.30004d2e
push dword [ebp - 0x3c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, esi
jmp 0x3000588b
lea eax, [esi + 0x1be]
push eax
push 0x68
push 0x64
push dword [esi + 0x26]
call fcn.3003a67d
mov ebx, eax
test ebx, ebx
jne 0x30005840
push 9
push esi
call fcn.30050b60
mov ebx, eax
test ebx, ebx
jne 0x30005840
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x470]
push eax
push esi
call fcn.30004b7f
mov ebx, eax
test ebx, ebx
jne 0x30005840
push dword [esi + 0x1d6]
call fcn.300396fe
mov ebx, eax
test ebx, ebx
jne 0x30005840
push dword [esi + 0x1d6]
call edi
push dword [eax + 0x50]
mov dword [ebp - 0x14], eax
call fcn.300396fe
mov ebx, eax
test ebx, ebx
jne 0x3000525c
mov eax, dword [ebp - 0x14]
push dword [eax + 0x58]
call fcn.300396fe
mov ebx, eax
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
jne 0x30005840
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x64]
push 0x65
push dword [esi + 0x26]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005840
push 0xc
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0xc], eax
call fcn.30067a6d
mov ebx, eax
test ebx, ebx
jne 0x30005831
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
and dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call fcn.3003bbfd
push dword [ebp - 4]
call fcn.300396fe
mov ebx, eax
test ebx, ebx
jne 0x30005831
lea ebx, [esi + 0x1be]
push dword [ebx]
call fcn.3003bbfd
push dword [ebx]
call fcn.300396fe
mov ebx, eax
test ebx, ebx
jne 0x30005831
push dword [ebp - 4]
call edi
push dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebx + 0x38]
inc eax
push ebx
mov dword [ebp - 0x54], eax
call fcn.3001c300
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x2c]
and eax, 0x10
cmp dword [ebx + 0x34], 0x22
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], eax
jne 0x30005325
mov eax, dword [ebx + 0x8c]
dec eax
jmp 0x30005328
mov eax, dword [ebp - 8]
push eax
push ebx
mov dword [ebp - 0x24], eax
call fcn.3001c300
mov ecx, dword [eax + 0x108]
mov edx, dword [ebx + 0x3c]
mov eax, dword [eax]
push dword [ebp - 4]
lea ecx, [ecx + edx + 1]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x6c]
push eax
push 0x66
push dword [ebp + 0xc]
call fcn.3003c4f9
mov ebx, eax
test ebx, ebx
jne 0x30005831
cmp dword [ebp - 0x6c], 1
jne 0x30005450
cmp dword [ebp - 0x34], eax
jne 0x30005450
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x66
push dword [ebp + 0xc]
call fcn.3003c584
mov ebx, eax
test ebx, ebx
jne 0x30005831
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push 0x66
push dword [ebp + 0xc]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005831
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
push 0x66
push dword [esi + 0x26]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005831
push dword [ebp - 0x30]
call fcn.300396fe
push dword [ebp - 0x30]
mov ebx, eax
call fcn.3003bbfd
test ebx, ebx
jne 0x3000540b
push dword [ebp - 0x28]
call fcn.3001c6ec
push eax
push dword [ebp - 0x30]
call fcn.3003978a
mov ebx, eax
test ebx, ebx
jne 0x3000540b
push dword [ebp - 0x30]
call fcn.3001c6ec
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.3003bb09
push 0
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call fcn.30004514
test ebx, ebx
jne 0x30005831
push dword [ebp - 4]
call edi
push dword [ebp - 8]
push eax
call fcn.3001c300
push 1
push 2
add eax, 0x2c
push eax
call fcn.30067eb7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x30005795
cmp dword [ebp - 0x10], 0xffffffff
je 0x300054c1
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [esi + 0x26]
call fcn.30013b2a
mov ebx, eax
test ebx, ebx
jne 0x30005831
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push 0x65
push dword [esi + 0x26]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005831
push dword [ebp - 4]
call fcn.3003bbfd
push dword [ebp - 4]
call fcn.300396fe
mov ebx, eax
test ebx, ebx
jne 0x30005831
push dword [ebp - 4]
call edi
mov ecx, dword [eax + 0x38]
or dword [eax + 0x2c], 0xffffffff
push dword [ebp - 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x48], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x1d6]
call edi
mov ebx, eax
push dword [ebx + 0x50]
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [eax + 0x10]
push dword [ebx + 0x50]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x68]
push eax
push ebx
push esi
call fcn.30027c98
mov ebx, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x50]
call edi
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
jne 0x30005831
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x3000553a
lea eax, [eax*4 + 4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x58]
push 0x65
push dword [ebp + 0xc]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005831
cmp dword [ebp - 0x20], eax
je 0x30005564
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x34], eax
jmp 0x30005568
and dword [ebp - 0x34], 0
push dword [ebp - 0x68]
lea eax, [ebp - 0x470]
push dword [ebp - 0x34]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x54]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [esi + 0x26]
push esi
push dword [ebp + 8]
call fcn.30004931
cmp dword [ebp - 0x20], 0
mov ebx, eax
je 0x300056a1
push dword [esi + 0x1d6]
call edi
push dword [eax + 0x50]
mov dword [ebp - 0x14], eax
call edi
mov ecx, dword [ebp - 0x50]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
lea edx, [ecx + eax]
cmp eax, edx
jge 0x30005677
lea ecx, [eax + 1]
imul ecx, ecx, 0xd0
add ecx, dword [ebp + 0xc]
sub edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], edx
mov eax, dword [ecx]
test eax, eax
jl 0x30005665
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0x66
push dword [esi + 0x26]
call fcn.3003a5eb
test eax, eax
jne 0x3000565c
push dword [ebp - 0x28]
call edi
lea ecx, [ebp - 0x4c]
push ecx
push dword [eax + 0x14]
mov dword [ebp - 0x50], eax
push 0x65
push dword [esi + 0x26]
call fcn.3003a5eb
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x3000564d
push dword [ebp - 0x4c]
call edi
mov ecx, dword [ebp - 0x50]
push dword [ecx + 0x18]
push eax
call fcn.3001c300
inc dword [eax + 0x90]
push dword [ebp - 0x4c]
call fcn.3003bbfd
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x58], 0
je 0x30005662
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xd0
dec dword [ebp - 8]
mov dword [ebp + 0xc], ecx
jne 0x300055e1
mov eax, dword [ebp - 0x14]
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x30005831
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
push 0x65
push dword [esi + 0x26]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005831
push eax
push dword [esi + 0x1be]
push dword [ebp - 0x48]
push dword [ebp - 0x54]
push dword [ebp - 0x38]
push dword [esi + 0x26]
call fcn.30013900
mov ebx, eax
test ebx, ebx
jne 0x30005831
cmp dword [ebp - 0x10], 0xffffffff
je 0x3000574f
push 0xffffffffffffffff
push dword [esi + 0x1be]
lea eax, [ebp - 4]
push 1
push dword [ebp - 0x38]
push eax
push dword [esi + 0x26]
call fcn.30009f69
mov ebx, eax
test ebx, ebx
jne 0x30005831
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x64]
push 0x65
push dword [esi + 0x26]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30005831
push dword [ebp - 4]
call edi
movsx eax, word [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
push dword [ebp - 0x1c]
push dword [ebp - 4]
push dword [ebp - 0x24]
push dword [ebp - 0x70]
jmp 0x30005783
push dword [ebp - 4]
call edi
push dword [ebp - 0x24]
push eax
call fcn.3001c300
push 1
push 8
add eax, 0x2c
push eax
call fcn.30067eb7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x38]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [esi + 0x26]
call fcn.30014ecd
mov ebx, eax
test ebx, ebx
jne 0x30005831
push 1
push 8
push 1
push 2
push dword [ebp - 4]
push dword [esi + 0x26]
call fcn.3001c412
lea edi, [esi + 0xd6]
push edi
push dword [esi + 0xde]
push 0x65
push dword [esi + 0x26]
call fcn.3003a67d
mov ebx, eax
test ebx, ebx
jne 0x30005831
push 1
push 1
push dword [edi]
push dword [esi + 0x26]
push dword [ebp + 8]
call fcn.3002403b
push 1
push ebx
push dword [edi]
mov dword [ebp + 0xc], eax
push dword [esi + 0x1d2]
push dword [esi + 0x26]
push dword [ebp + 8]
call fcn.3001c0fc
cmp dword [ebp + 0xc], ebx
je 0x300057f9
mov ebx, dword [ebp + 0xc]
jmp 0x300057ff
test eax, eax
je 0x30005808
mov ebx, eax
test ebx, ebx
je 0x30005808
cmp ebx, 0xffffffff
jne 0x30005831
push 1
push 0xffffffffffffffff
push 0x6c
push esi
push dword [ebp + 8]
call fcn.3003305e
push 0
push 0xffffffffffffffff
push 0x6e
push esi
push dword [ebp + 8]
call fcn.3003305e
push 0
push esi
push dword [ebp + 8]
call fcn.3000aff0
cmp dword [ebp - 0xc], 0
je 0x30005840
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x18], 0
je 0x3000584f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x2c], 0
je 0x3000585d
push dword [ebp - 0x2c]
call fcn.30065173
test ebx, ebx
je 0x30005880
push 0
push dword [ebp + 8]
call fcn.30001faf
test eax, eax
je 0x3000587c
push 1
push 0x40
lea eax, [esi + 0x22]
push eax
call fcn.30067eb7
and dword [esi + 0x4a], 0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 8