Function at 0x4051a0
Capabilities:
Open clipboard

Disassembly:
push 0xffffffffffffffff
push 0x5605d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x30]
call fcn.005595fe
xor ebp, ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0xb8], ebp
call fcn.0055974f
test eax, eax
je 0x40575d
push ebp
push 0xf
lea ecx, [esp + 0x38]
call fcn.00559711
test eax, eax
lea ecx, [esp + 0x30]
push ebp
je 0x4053ce
push 0xf
call fcn.00559673
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
je 0x40575d
mov ecx, ebx
call fcn.00424af0
mov eax, dword [0x5d2d10]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xb8], 1
push ecx
mov ecx, ebx
call fcn.00424bd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 2
call fcn.00530cc8
lea ecx, [esp + 0x24]
mov byte [esp + 0xb8], 1
call fcn.00530b8f
mov dx, word [ebx + 0x40]
push ebp
push edx
lea ecx, [esp + 0x38]
mov esi, 1
call fcn.00559711
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x405299
mov ax, word [ebx + 0x40]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00559673
mov edi, eax
push edi
call ebp
mov esi, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x10]
push edi
call ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push eax
call fcn.0049e730
mov ebp, esi
add esp, 8
and ebp, 2
xor edx, edx
cmp ebp, 2
mov edi, eax
setne dl
inc edx
mov dword [esp + 0x20], 0x240
mov esi, edx
cmp esi, 2
jne 0x40533b
push edi
lea ecx, [esp + 0x2c]
call fcn.00530bfd
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0xc0], 3
mov dword [esp + 0x2c], eax
call fcn.004a0500
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
push eax
call fcn.00514c8c
add esp, 0x10
lea ecx, [esp + 0x2c]
test eax, eax
sete byte [esp + 0x1b]
call fcn.00530b8f
mov al, byte [esp + 0x1b]
test al, al
je 0x40532a
mov dword [esp + 0x20], 0x248
lea ecx, [esp + 0x28]
mov byte [esp + 0xb8], 1
call fcn.00530b8f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
push eax
push ecx
push edi
push esi
mov ecx, ebx
call dword [edx + 0xf0]
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405364
push edi
call fcn.00531c29
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx + 0x1f4]
test eax, eax
je 0x405387
mov eax, dword [ebx]
push 1
push 1
mov ecx, ebx
call dword [eax + 0xe8]
cmp ebp, 2
jne 0x4053a2
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0
call fcn.00530b8f
lea ecx, [esp + 0x30]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0055962b
mov eax, esi
jmp 0x405773
mov dx, word [0x5d7f20]
push edx
call fcn.00559711
test eax, eax
je 0x40575d
mov eax, dword [0x5d2d10]
mov dword [esp + 0x10], eax
mov ecx, ebx
mov byte [esp + 0xb8], 4
call fcn.00424af0
mov ecx, 0x66d030
mov esi, eax
mov dword [esp + 0x24], ebp
call fcn.004d10a0
sub eax, ebp
je 0x4055bd
dec eax
je 0x4054c3
dec eax
jne 0x405624
cmp esi, ebp
mov dword [esp + 0x24], 1
je 0x40544b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test eax, eax
je 0x40544b
mov ecx, esi
call fcn.00423720
push eax
lea ecx, [esp + 0x14]
call fcn.00530cc8
jmp 0x40547a
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00424bd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 8
call fcn.00530cc8
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 4
call fcn.00530b8f
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
jne 0x405624
mov ecx, 0x66d030
call fcn.004d1350
test eax, eax
jne 0x405624
lea edx, [esp + 0x14]
mov ecx, 0x66d030
push edx
call fcn.004d1270
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 9
call fcn.00530cc8
lea ecx, [esp + 0x14]
jmp 0x405617
mov ecx, 0x66d030
call fcn.004d1350
test eax, eax
je 0x405570
call fcn.00531e1f
cmp eax, ebp
je 0x4054e7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4054e9
xor eax, eax
push eax
push 0x58c978
call fcn.00531c4c
add esp, 8
test eax, eax
je 0x405570
call fcn.00531e1f
cmp eax, ebp
je 0x40550d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40550f
xor eax, eax
push eax
push 0x58c978
call fcn.00531c4c
add eax, 0xd38
add esp, 8
test eax, eax
je 0x405570
call fcn.00531e1f
cmp eax, ebp
je 0x405538
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40553a
xor eax, eax
push eax
push 0x58c978
call fcn.00531c4c
add esp, 8
lea ecx, [esp + 0x64]
push ecx
lea ecx, [eax + 0xf18]
call fcn.00424bd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 6
call fcn.00530cc8
lea ecx, [esp + 0x64]
jmp 0x405595
lea edx, [esp + 0x60]
mov ecx, 0x66d030
push edx
call fcn.004d1270
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 7
call fcn.00530cc8
lea ecx, [esp + 0x60]
mov byte [esp + 0xb8], 4
call fcn.00530b8f
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
jne 0x405624
push 0xffffffffffffffff
push ebp
push 0x7eb
call fcn.0053a982
jmp 0x40574c
mov ecx, dword [ebx + 0x1c]
push ebp
push ebp
push 0x1032
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x4055f5
cmp esi, ebp
je 0x4055f5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test eax, eax
je 0x4055f5
mov ecx, esi
call fcn.00423720
push eax
lea ecx, [esp + 0x14]
call fcn.00530cc8
jmp 0x405624
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
call fcn.00424bd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 5
call fcn.00530cc8
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 4
call fcn.00530b8f
call fcn.00531e1f
cmp eax, ebp
je 0x405636
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x405638
xor eax, eax
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call fcn.0052da16
mov cx, word [0x5d7f20]
push ebp
push ecx
lea ecx, [esp + 0x38]
call fcn.00559673
mov esi, eax
cmp esi, ebp
je 0x40574c
lea ecx, [esp + 0x68]
call fcn.0048b440
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xbc], 0xa
call fcn.0048b6e0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call fcn.0048b810
lea eax, [esp + 0x28]
lea ecx, [esp + 0x68]
push eax
call fcn.0048b810
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x6c]
call fcn.0048b860
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x68]
push edx
call fcn.0048b860
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
cmp dword [esp + 0x20], ebp
je 0x40573b
mov ax, word [ebx + 0x40]
push ebp
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 1
call fcn.00559711
test eax, eax
je 0x405716
mov cx, word [ebx + 0x40]
push ebp
push ecx
lea ecx, [esp + 0x38]
call fcn.00559673
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [eax]
push esi
mov dword [esp + 0x20], edx
call edi
test byte [esp + 0x1c], 2
je 0x405725
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x20]
push eax
call fcn.0052da16
mov ebp, eax
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x40], ebp
jne 0x40578c
lea ecx, [esp + 0x68]
mov byte [esp + 0xb8], 4
call fcn.0048b4d0
lea ecx, [esp + 0x10]
mov byte [esp + 0xb8], 0
call fcn.00530b8f
lea ecx, [esp + 0x30]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0055962b
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
mov dword [esp + 0x48], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, edi
mov byte [esp + 0xb8], 0xb
jle 0x4057f5
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edi
push ecx
lea ecx, [esp + 0x6c]
call fcn.0048b860
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov ebp, eax
inc eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x50]
call fcn.00410380
mov edx, dword [esp + 0x4c]
inc esi
mov dword [edx + ebp*4], edi
mov eax, dword [esp + 0x28]
xor edi, edi
cmp esi, eax
jl 0x4057b6
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
lea ecx, [eax*4]
push ecx
call fcn.00531c00
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
push edi
push edi
push eax
mov eax, dword [esp + 0x30]
cmp eax, edi
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp]
push edi
sete cl
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea eax, [esp + 0x64]
push 1
push eax
push esi
mov ecx, ebp
call dword [edx + 0x148]
push esi
call fcn.00531c29
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, edi
je 0x405863
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x4c]
mov byte [esp + 0xb8], 0xa
cmp eax, edi
mov dword [esp + 0x48], 0x57f79c
je 0x405884
push eax
call fcn.00531c29
add esp, 4
lea ecx, [esp + 0x68]
mov byte [esp + 0xb8], 4
call fcn.0048b4d0
lea ecx, [esp + 0x10]
mov byte [esp + 0xb8], 0
call fcn.00530b8f
lea ecx, [esp + 0x30]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0055962b
mov eax, 1
jmp 0x405773