Function at 0x402703
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
push 4
mov edi, ecx
mov dword [ebp - 0x428], eax
push eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x404], ecx
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x440], ecx
mov dword [0x47c844], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov dword [ebp - 0x458], esi
test esi, esi
jne 0x40278c
mov eax, 0x2714
jmp 0x403255
push dword [0x49d9fc]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4027d0
movzx eax, word [0x49cd60]
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push eax
call esi
movzx ecx, word [0x49cd5c]
mov edi, eax
push ecx
mov dword [ebp - 0x40c], edi
call esi
mov dword [ebp - 0x410], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [ebp - 0x458]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call ebx
lea ecx, [ebp - 0x474]
push ecx
push 1
lea ecx, [ebp - 0x478]
push ecx
xor ecx, ecx
test edi, edi
sete cl
push ecx
push eax
call fcn.00453b1f
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x402815
cmp dword [ebp - 0x474], 0
je 0x40281c
push 0x16
call fcn.0044af27
xor eax, eax
jmp 0x403254
mov ecx, dword [ebp - 0x478]
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x46c], eax
movsx eax, cx
push esi
mov dword [ebp - 0x408], eax
call ebx
cmp dword [ebp - 0x410], 0
mov esi, eax
mov dword [ebp - 0x42c], esi
jne 0x402858
cmp dword [ebp - 0x40c], 0
je 0x403220
push 1
call fcn.0044bc76
lea eax, [ebp - 0x464]
push eax
push 0x6a
push 0x64
push dword [0x49ec60]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x403224
push dword [ebp - 0x464]
call ebx
push dword [ebp - 0x464]
xor ebx, ebx
mov cx, word [eax + 0x10]
cmp cx, word [esi]
mov eax, dword [eax + 0x16]
setne bl
mov dword [ebp - 0x434], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
jne 0x403246
lea eax, [ebp - 0x43c]
push eax
push 0x69
push 0x64
push dword [0x49ec60]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x403224
push dword [ebp - 0x43c]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalSize]
call ebx
sub eax, 0x10
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x448], eax
call fcn.0046bf87
mov edi, eax
test edi, edi
jne 0x403210
mov eax, dword [ebp - 0x448]
push eax
push dword [ebp - 0x43c]
call fcn.0043d74e
lea eax, [ebp - 0x438]
push eax
push 0x6f
push 0x64
push dword [0x49ec60]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x403210
push dword [ebp - 0x438]
call ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push dword [ebp - 0x438]
mov dword [ebp - 0x444], edi
call fcn.0043d74e
and dword [ebp - 0x438], 0
push dword [esi + 0x1c6]
mov ebx, dword [ebp - 0x448]
push ebx
push edi
push dword [esi + 0xb6]
call fcn.00468e4f
mov edi, eax
test edi, edi
jne 0x4031ff
and dword [ebp - 0x43c], eax
push ebx
call fcn.004683c8
xor eax, eax
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x418]
push eax
push 0x67
push 0x64
push dword [0x49ec60]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ff
lea eax, [esi + 0xce]
push eax
push 0x67
push 0x64
push dword [esi + 0x26]
call fcn.0043c3a1
mov edi, eax
test edi, edi
jne 0x4031ff
cmp dword [ebp - 0x40c], eax
je 0x402a2c
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x400]
push eax
push esi
call fcn.00403267
mov edi, eax
test edi, edi
jne 0x4031ff
push eax
lea eax, [ebp - 0x400]
push eax
push dword [ebp - 0x444]
push dword [ebp + 0xc]
push dword [esi + 0x26]
push dword [ebp - 0x428]
call fcn.004052d4
push dword [ebp - 0x458]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, esi
jmp 0x403254
lea eax, [esi + 0x1be]
push eax
push 0x68
push 0x64
push dword [esi + 0x26]
call fcn.0043c3a1
mov edi, eax
test edi, edi
jne 0x4031ff
push 9
push esi
call fcn.00453c92
mov edi, eax
test edi, edi
jne 0x4031ff
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x400]
push eax
push esi
call fcn.00403267
mov edi, eax
test edi, edi
jne 0x4031ff
push dword [esi + 0x1d6]
call fcn.0043b553
mov edi, eax
test edi, edi
jne 0x4031ff
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push dword [ebx + 0x50]
call fcn.0043b553
mov edi, eax
test edi, edi
jne 0x402ab4
push dword [ebx + 0x58]
call fcn.0043b553
mov edi, eax
push dword [esi + 0x1d6]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
test edi, edi
jne 0x4031ff
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x46c]
push 0x65
push dword [esi + 0x26]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ff
push 0xc
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x410], eax
call fcn.0046bf87
mov edi, eax
test edi, edi
jne 0x4031ee
mov edi, dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
and dword [eax], 0
call ebx
push dword [ebp - 0x404]
call fcn.0043d6c9
push dword [ebp - 0x404]
call fcn.0043b553
mov edi, eax
test edi, edi
jne 0x4031ee
lea edi, [esi + 0x1be]
push dword [edi]
call fcn.0043d6c9
push dword [edi]
call fcn.0043b553
mov edi, eax
test edi, edi
jne 0x4031ee
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x408]
mov edi, eax
push edi
mov eax, dword [edi + 0x38]
inc eax
mov dword [ebp - 0x450], eax
call fcn.0041e296
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x2c]
and eax, 0x10
mov dword [ebp - 0x430], ecx
cmp dword [edi + 0x34], 0x22
mov dword [ebp - 0x45c], eax
jne 0x402ba4
mov eax, dword [edi + 0x8c]
dec eax
jmp 0x402baa
mov eax, dword [ebp - 0x408]
push eax
push edi
mov dword [ebp - 0x40c], eax
call fcn.0041e296
mov ecx, dword [edi + 0x3c]
push dword [ebp - 0x404]
inc ecx
add ecx, dword [eax + 0x108]
mov eax, dword [eax]
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x454], eax
call ebx
lea eax, [ebp - 0x47c]
push eax
push 0x66
push dword [ebp + 0xc]
call fcn.0043e427
mov edi, eax
test edi, edi
jne 0x4031ee
cmp dword [ebp - 0x47c], 1
jne 0x402d13
cmp dword [ebp - 0x45c], eax
jne 0x402d13
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x66
push dword [ebp + 0xc]
call fcn.0043e321
mov edi, eax
test edi, edi
jne 0x4031ee
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x41c]
push 0x66
push dword [ebp + 0xc]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ee
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x430]
push 0x66
push dword [esi + 0x26]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ee
push dword [ebp - 0x414]
call fcn.0043b553
push dword [ebp - 0x414]
mov edi, eax
call fcn.0043d6c9
test edi, edi
jne 0x402cbf
push dword [ebp - 0x418]
call fcn.0041e34b
push eax
push dword [ebp - 0x414]
call fcn.0043b8ef
mov edi, eax
test edi, edi
jne 0x402cbf
push dword [ebp - 0x414]
call fcn.0041e34b
push eax
push dword [ebp - 0x414]
push dword [ebp - 0x418]
call fcn.0043d7a5
push 0
lea eax, [ebp - 0x400]
push eax
push dword [ebp - 0x414]
push dword [ebp - 0x444]
call fcn.0040558a
test edi, edi
jne 0x4031ee
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x408]
push eax
call fcn.0041e296
push 1
push 2
add eax, 0x2c
push eax
call fcn.0046bad9
push dword [ebp - 0x404]
call ebx
jmp 0x403147
cmp dword [ebp - 0x454], 0xffffffff
je 0x402da9
push dword [ebp - 0x40c]
push dword [ebp - 0x404]
push dword [esi + 0x26]
call fcn.00414c3a
mov edi, eax
test edi, edi
jne 0x4031ee
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x454]
push 0x65
push dword [esi + 0x26]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ee
push dword [ebp - 0x404]
call fcn.0043d6c9
push dword [ebp - 0x404]
call fcn.0043b553
mov edi, eax
test edi, edi
jne 0x4031ee
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x38]
or dword [eax + 0x2c], 0xffffffff
push dword [ebp - 0x404]
mov dword [ebp - 0x450], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x44c], ecx
call ebx
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi + 0x50]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x408], eax
call ebx
lea eax, [ebp - 0x468]
push eax
push esi
push dword [ebp - 0x42c]
call fcn.00428ebb
push dword [esi + 0x50]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi + 0x50]
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 0x408]
mov dword [ebp - 0x430], eax
call ebx
mov esi, dword [ebp - 0x42c]
push dword [esi + 0x1d6]
call ebx
test edi, edi
jne 0x4031ee
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x402e36
lea eax, [eax*4 + 4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x434]
push 0x65
push dword [ebp + 0xc]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ee
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x402e6a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x402e6c
xor eax, eax
push dword [ebp - 0x468]
mov dword [ebp - 0x42c], eax
push eax
push 0
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
push dword [ebp - 0x450]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x420]
push dword [ebp - 0x410]
push dword [ebp - 0x444]
push dword [ebp + 0xc]
push dword [esi + 0x26]
push esi
push dword [ebp - 0x428]
call fcn.00401127
cmp dword [ebp - 0x424], 0
mov edi, eax
mov dword [ebp - 0x45c], edi
je 0x40300b
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x460], eax
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x430]
add eax, edx
cmp edx, eax
jge 0x402fe4
lea ecx, [edx + 1]
imul edi, ecx, 0xd0
add edi, dword [ebp - 0x434]
sub eax, edx
mov dword [ebp - 0x408], eax
mov ecx, dword [edi]
test ecx, ecx
js 0x402fc9
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x418]
push ecx
push eax
push 0x66
mov dword [edi], eax
push dword [esi + 0x26]
call fcn.0043c164
test eax, eax
jne 0x402fc0
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x434], eax
push ecx
push dword [eax + 0x14]
push 0x65
push dword [esi + 0x26]
call fcn.0043c164
mov dword [ebp - 0x430], eax
test eax, eax
jne 0x402faf
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x434]
push dword [ecx + 0x18]
push eax
call fcn.0041e296
inc dword [eax + 0x90]
push dword [ebp - 0x440]
call fcn.0043d6c9
push dword [ebp - 0x440]
call ebx
push dword [ebp - 0x418]
call ebx
cmp dword [ebp - 0x430], 0
je 0x402fc3
or dword [edi], 0xffffffff
mov eax, dword [ebp - 0x408]
add edi, 0xd0
sub eax, 1
mov dword [ebp - 0x408], eax
jne 0x402f20
mov edi, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x460]
push dword [eax + 0x50]
call ebx
push dword [esi + 0x1d6]
call ebx
push dword [ebp - 0x424]
call ebx
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jne 0x4031ee
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
push 0x65
push dword [esi + 0x26]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ee
push eax
push dword [esi + 0x1be]
push dword [ebp - 0x44c]
push dword [ebp - 0x450]
push dword [ebp - 0x420]
push dword [esi + 0x26]
call fcn.0041594a
mov edi, eax
test edi, edi
jne 0x4031ee
cmp dword [ebp - 0x454], 0xffffffff
je 0x4030f0
push 0xffffffffffffffff
push dword [esi + 0x1be]
lea eax, [ebp - 0x404]
push 1
push dword [ebp - 0x420]
push eax
push dword [esi + 0x26]
call fcn.00409b68
mov edi, eax
test edi, edi
jne 0x4031ee
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x46c]
push 0x65
push dword [esi + 0x26]
call fcn.0043c164
mov edi, eax
test edi, edi
jne 0x4031ee
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x404]
movsx eax, word [eax]
mov dword [ebp - 0x41c], eax
call ebx
push edi
push 1
push dword [ebp - 0x41c]
push dword [ebp - 0x404]
push dword [ebp - 0x40c]
push dword [ebp - 0x470]
jmp 0x403135
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [ebp - 0x40c]
push edi
push eax
call fcn.0041e296
push 1
push 8
add eax, 0x2c
push eax
call fcn.0046bad9
push dword [ebp - 0x404]
call ebx
push 0
push 1
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x404]
push dword [esi + 0x26]
call fcn.00414fe2
mov edi, eax
test edi, edi
jne 0x4031ee
push 1
push 8
push 1
push 2
push dword [ebp - 0x404]
push dword [esi + 0x26]
call fcn.0041e1a9
lea ebx, [esi + 0xd6]
push ebx
push dword [esi + 0xde]
push 0x65
push dword [esi + 0x26]
call fcn.0043c3a1
mov edi, eax
test edi, edi
jne 0x4031ee
push 1
push 1
push dword [ebx]
push dword [esi + 0x26]
push dword [ebp - 0x428]
call fcn.00421b2c
push 1
push edi
push dword [ebx]
mov ebx, dword [ebp - 0x428]
push dword [esi + 0x1d2]
mov dword [ebp - 0x460], eax
push dword [esi + 0x26]
push ebx
call fcn.0041cb36
mov ecx, dword [ebp - 0x460]
test ecx, ecx
je 0x4031bc
mov edi, ecx
jmp 0x4031c2
test eax, eax
je 0x4031cb
mov edi, eax
test edi, edi
je 0x4031cb
cmp edi, 0xffffffff
jne 0x4031ee
push 1
push 0xffffffffffffffff
push 0x6c
push esi
push ebx
call fcn.00434e3e
push 0
push 0xffffffffffffffff
push 0x6e
push esi
push ebx
call fcn.00434e3e
push 0
push esi
push ebx
call fcn.0040ad07
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x4031ff
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x403210
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x403220
push eax
call fcn.004683c8
test edi, edi
je 0x403246
push 0
push dword [ebp - 0x428]
call fcn.00403434
test eax, eax
je 0x403242
push 1
push 0x40
lea eax, [esi + 0x22]
push eax
call fcn.0046bad9
and dword [esi + 0x4a], 0
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00475d95
mov esp, ebp
pop ebp
ret 8