Function at 0x415350
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x150
push ebx
push ebp
mov ebx, ecx
push esi
mov ecx, dword [esp + 0x164]
push edi
mov eax, 0xffff
xor edi, edi
cmp ecx, eax
mov dword [esp + 0x10], edi
jne 0x415385
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x18], 1
cmp ecx, eax
je 0x415389
mov dword [esp + 0x18], edi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ah, 0x80
jne 0x4153a5
push 0x11
call esi
test ah, 0x80
mov dword [esp + 0x38], edi
je 0x4153ad
mov dword [esp + 0x38], 1
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x164]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x415461
cmp esi, dword [ebx + 8]
je 0x4153f7
cmp esi, dword [ebx + 0x1c]
je 0x4153f7
cmp esi, dword [ebx + 0xc]
jne 0x416049
push 0
push 9
push 0x110a
push esi
call ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1104
jmp 0x415422
push 1
push 0xffffffffffffffff
push 0x100c
push esi
call ebp
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x415419
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x1c]
jmp 0x41541b
xor ecx, ecx
push ecx
push eax
push 0x100e
push esi
call ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x168], eax
lea eax, [ecx + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x16c], eax
lea eax, [esp + 0x168]
push eax
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x168]
mov ecx, dword [ebx + 8]
push edx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [esp + 0x14]
jne 0x41551e
mov ecx, dword [ebx + 0x90]
push 0x4ebd
push ecx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
mov edi, eax
mov eax, dword [0x4caae0]
test eax, eax
je 0x4154c9
push 8
push 0x4ea3
push edi
call esi
mov eax, dword [0x4caae4]
test eax, eax
je 0x4154dc
push 8
push 0x4ea4
push edi
call esi
mov eax, dword [0x4caae8]
test eax, eax
je 0x4154ef
push 8
push 0x4ea5
push edi
call esi
mov eax, dword [0x4caaec]
test eax, eax
je 0x415502
push 8
push 0x4ea6
push edi
call esi
mov eax, dword [0x4caaf0]
test eax, eax
je 0x416006
push 8
push 0x4ea7
push edi
call esi
jmp 0x416006
cmp esi, dword [ebx + 4]
jne 0x41559d
mov edx, dword [ebx + 0x90]
push 0x4ebe
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
mov edi, eax
mov eax, dword [ebx + 0x2c0]
test eax, eax
je 0x415620
push 8
push 0x4f11
push edi
call esi
mov eax, dword [0x4caa8c]
xor ecx, ecx
sub eax, ecx
je 0x41558f
dec eax
je 0x415581
dec eax
jne 0x415594
mov ecx, 0x4f16
push 8
push ecx
push edi
jmp 0x41561e
mov ecx, 0x4f15
push 8
push ecx
push edi
jmp 0x41561e
mov ecx, 0x4f14
push 8
push ecx
push edi
jmp 0x41561e
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x415976
cmp esi, dword [esp + 0x14]
je 0x415976
mov eax, dword [ebx + 0xa0]
cmp esi, dword [eax + 0x44]
jne 0x41563c
mov ecx, dword [ebx + 0x90]
push 0x4e85
push ecx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [0x4caa5c]
mov edi, eax
xor eax, eax
cmp ecx, 4
ja case.default.0x4155ec
jmp dword [ecx*4 + 0x416058]
mov eax, 0x4eaa
jmp case.default.0x4155ec
mov eax, 0x4eab
jmp case.default.0x4155ec
mov eax, 0x4eac
jmp case.default.0x4155ec
mov eax, 0x4ead
jmp case.default.0x4155ec
mov eax, 0x4eae
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push eax
push edi
call esi
mov eax, dword [0x4ca944]
test eax, eax
je 0x416006
push 8
push 0x4ea9
push edi
call esi
jmp 0x416006
cmp esi, dword [ebx + 0x1c]
jne 0x415792
push 0xffffffffffffffff
mov ecx, ebx
mov esi, 0x70
call fcn.00418d40
mov ebp, eax
test ebp, ebp
je 0x41565e
mov esi, 0x6f
mov edx, dword [ebx + 0x90]
and esi, 0xffff
push esi
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test ebp, ebp
mov edi, eax
je 0x415720
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4156ae
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x168]
mov edx, dword [ebp]
push eax
mov eax, dword [ebx + 0x1c]
push ecx
push edx
push eax
jmp 0x41580c
mov eax, dword [ebp + 0xc]
push 0
cmp eax, 1
jne 0x4156d7
push 0x4eb0
push edi
call dword [sym.imp.USER32.dll_RemoveMenu]
push 0
push 0x4f18
push edi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x416006
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x4f18
push edi
call esi
push 0
push 0x4f44
push edi
call esi
push 0
push 0x4f47
push edi
call esi
push 0
push 0x4f67
push edi
call esi
push 0x400
push 4
push edi
call esi
push 0
push 0x4eb0
push edi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x416006
mov esi, dword [0x4caa90]
xor ecx, ecx
test esi, esi
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
setne cl
add ecx, 0x4f65
mov esi, ecx
push esi
push edi
call ebp
mov eax, dword [0x4caaf8]
cmp eax, 3
ja case.default.0x41574b
jmp dword [eax*4 + 0x41606c]
mov esi, 0x4f68
push 8
push esi
push edi
call ebp
jmp 0x416006
mov esi, 0x4f69
push 8
push esi
push edi
call ebp
jmp 0x416006
mov esi, 0x4f6a
push 8
push esi
push edi
call ebp
jmp 0x416006
mov esi, 0x4f6c
push 8
push esi
push edi
call ebp
jmp 0x416006
mov eax, dword [ebx + 0xc]
cmp esi, eax
jne 0x4158e5
mov edx, dword [esp + 0x168]
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebx + 0xc]
mov ebp, eax
push ebp
push edx
call fcn.00404860
add esp, 8
test eax, eax
je 0x416006
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x415831
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x168]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
push eax
push ecx
call fcn.00407170
add esp, 0x10
test eax, eax
jne 0x416049
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret 0xc
mov ecx, dword [eax]
lea esi, [esp + 0x14]
add eax, 8
push esi
mov dword [esp + 0x18], 0x40000177
mov edx, dword [ecx]
push eax
push 1
push ecx
call dword [edx + 0x24]
test eax, eax
jne 0x416006
mov eax, dword [esp + 0x14]
mov esi, eax
mov ecx, eax
and esi, 0x10
and ecx, 0x20
test eax, 0x40000000
mov dword [esp + 0x18], ecx
je 0x416006
mov eax, dword [ebx + 0xc]
push ebp
push 8
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x90]
push 0x71
push ecx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebp, dword [sym.imp.USER32.dll_RemoveMenu]
mov edi, eax
test esi, esi
jne 0x4158bd
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4158bd
push 0x400
push 2
push edi
call ebp
test esi, esi
jne 0x4158ca
push esi
push 0x4e88
push edi
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x416006
push 0
push 0x4e89
push edi
call ebp
jmp 0x416006
cmp esi, dword [ebx + 0x10]
jne 0x41590d
mov edx, dword [ebx + 0x90]
push 0x72
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
jmp 0x416006
cmp esi, dword [ebx + 0x14]
jne 0x416006
mov eax, dword [ebx + 0x90]
push 0x73
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [ebx + 0x8c]
mov edi, eax
neg ecx
sbb ecx, ecx
push 0
and ecx, 0x8b
add ecx, 0x4ebd
push ecx
push edi
call dword [sym.imp.USER32.dll_RemoveMenu]
mov edx, dword [ebx + 0x8c]
push 0
neg edx
sbb edx, edx
and dl, 0x75
add edx, 0x4f48
push edx
push edi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x416006
mov ecx, ebx
call fcn.004139f0
mov eax, dword [ebx + 8]
xor esi, esi
push esi
push esi
push 0x1032
push eax
call ebp
test eax, eax
jbe 0x415ef2
cmp dword [esp + 0x38], esi
je 0x415b54
lea ecx, [esp + 0x3c]
call fcn.0041e310
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.00413770
push 0x80
mov dword [esp + 0x20], 0x4aa684
call fcn.004985f0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
add esp, 4
cmp esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x1f
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x2c], 1
mov dword [esp + 0x14], esi
jge 0x415ac5
test esi, esi
jl 0x415a05
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + esi*4]
jmp 0x415a07
xor ecx, ecx
lea eax, [esp + 0x5c]
push 0
push eax
lea eax, [ebx + 0xa4]
push eax
call fcn.0041dd10
lea ecx, [esp + 0x5c]
push ecx
call fcn.0043c610
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x415ab4
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
lea edx, [ecx + 1]
cmp edi, edx
jne 0x415aa0
mov eax, dword [esp + 0x30]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ebp, eax
add esp, 4
lea ecx, [edx*4 + 4]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00498600
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
add esp, 4
add eax, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4159f8
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x168]
push eax
mov eax, dword [ebx + 8]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00406f30
add esp, 0x10
test eax, eax
jne 0x415af2
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0x4aa684
test eax, eax
je 0x415b31
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x415b31
cmp esi, eax
jge 0x415b1d
test esi, esi
jl 0x415b1d
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + esi*4]
jmp 0x415b1f
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x28]
add esp, 4
inc esi
cmp esi, eax
jl 0x415b10
mov edx, dword [esp + 0x20]
push edx
call fcn.00498600
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0041e3a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret 0xc
mov eax, dword [ebx + 0x90]
push 0x82
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push 0
push eax
mov dword [esp + 0x18], eax
call esi
mov ebp, dword [sym.imp.USER32.dll_RemoveMenu]
mov edi, eax
mov eax, dword [ebx + 0x430]
test eax, eax
jne 0x415b9b
mov eax, dword [ebx + 0x434]
test eax, eax
jne 0x415b9b
push 0x400
push 0x12
push edi
call ebp
mov eax, dword [ebx + 0x424]
test eax, eax
jne 0x415beb
mov eax, dword [ebx + 0x42c]
test eax, eax
jne 0x415bc3
mov eax, dword [ebx + 0x420]
test eax, eax
jne 0x415bc3
push 0x400
push 0xe
push edi
call ebp
mov eax, dword [ebx + 0x424]
test eax, eax
jne 0x415beb
mov eax, dword [ebx + 0x42c]
test eax, eax
jne 0x415beb
mov eax, dword [ebx + 0x428]
test eax, eax
jne 0x415beb
push 0x400
push 0xa
push edi
call ebp
mov ecx, ebx
call fcn.00416e60
mov eax, dword [ebx + 0x410]
test eax, eax
je 0x415d38
push 9
push edi
call esi
mov ebp, eax
mov eax, dword [ebx + 0x448]
xor esi, esi
test eax, eax
jle 0x415ca4
cmp esi, eax
jge 0x415c2a
test esi, esi
jl 0x415c2a
mov ecx, dword [ebx + 0x444]
mov eax, dword [ecx + esi*4]
jmp 0x415c2c
xor eax, eax
push str.Open
push eax
call fcn.004a7820
mov eax, dword [ebx + 0x448]
add esp, 8
cmp esi, eax
jge 0x415c53
test esi, esi
jl 0x415c53
mov edx, dword [ebx + 0x444]
mov eax, dword [edx + esi*4]
jmp 0x415c55
xor eax, eax
push str.Edit
push eax
call fcn.004a7820
mov eax, dword [ebx + 0x464]
add esp, 8
cmp esi, eax
jge 0x415c7c
test esi, esi
jl 0x415c7c
mov eax, dword [ebx + 0x460]
mov eax, dword [eax + esi*4]
jmp 0x415c7e
xor eax, eax
lea ecx, [esi + 0x7530]
push eax
push ecx
push 0x400
push esi
push ebp
call dword [sym.imp.USER32.dll_InsertMenuA]
mov eax, dword [ebx + 0x448]
inc esi
cmp esi, eax
jl 0x415c1b
test eax, eax
jne 0x415cb8
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push ebp
call esi
jmp 0x415cbe
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
mov eax, dword [ebx + 0x408]
test eax, eax
jne 0x415ce8
mov eax, dword [ebx + 0x40c]
test eax, eax
jne 0x415ce8
mov edx, dword [ebx + 0x478]
push 0
add edx, 0x7530
push edx
push ebp
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, ebx
call fcn.00413740
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x415d0a
push 0
push 0x4ec6
push ebp
call esi
push 0
push 0x4ec7
push ebp
call esi
mov eax, dword [ebx + 0x408]
test eax, eax
jne 0x415d48
mov eax, dword [ebx + 0x40c]
test eax, eax
jne 0x415d48
mov eax, dword [ebx + 0x448]
test eax, eax
jne 0x415d48
push 0
push 0x4ec6
push ebp
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x415d48
push 0x400
push 9
push edi
call ebp
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
mov eax, dword [ebx + 0x41c]
test eax, eax
jne 0x415d5c
push 0x400
push 7
push edi
call esi
mov eax, dword [ebx + 0x408]
test eax, eax
jne 0x415d70
push 0
push 0x4e84
push edi
call esi
mov eax, dword [ebx + 0x418]
test eax, eax
jne 0x415d84
push 0
push 0x4e85
push edi
call esi
mov eax, dword [ebx + 0x40c]
test eax, eax
jne 0x415d98
push 0
push 0x4eb0
push edi
call esi
mov eax, dword [ebx + 0x43c]
test eax, eax
jne 0x415dd4
push 0
push 0x4f44
push edi
call esi
mov eax, dword [ebx + 0x43c]
test eax, eax
jne 0x415dd4
push 0
push 0x4f47
push edi
call esi
mov eax, dword [ebx + 0x43c]
test eax, eax
jne 0x415dd4
push 0
push 0x4f67
push edi
call esi
mov eax, dword [ebx + 0x414]
test eax, eax
jne 0x415de8
push 0
push 0x4ea8
push edi
call esi
mov eax, dword [ebx + 0x438]
test eax, eax
jne 0x415dfc
push 0
push 0x4f2c
push edi
call esi
mov eax, dword [ebx + 0x42c]
test eax, eax
jne 0x415e10
push 0
push 0x4f3f
push edi
call esi
mov eax, dword [ebx + 0x424]
test eax, eax
jne 0x415e24
push 0
push 0x4e87
push edi
call esi
mov eax, dword [ebx + 0x428]
test eax, eax
jne 0x415e38
push 0
push 0x4f49
push edi
call esi
mov eax, dword [ebx + 0x420]
test eax, eax
jne 0x415e4c
push 0
push 0x4e89
push edi
call esi
mov eax, dword [ebx + 0x42c]
test eax, eax
jne 0x415e60
push 0
push 0x4f40
push edi
call esi
mov eax, dword [ebx + 0x424]
test eax, eax
jne 0x415e74
push 0
push 0x4f3d
push edi
call esi
mov eax, dword [ebx + 0x430]
test eax, eax
jne 0x415e92
push 0
push 0x4e88
push edi
call esi
mov eax, dword [ebx + 0x430]
test eax, eax
je 0x415e9b
cmp dword [ebx + 0x3f0], 2
jge 0x415ea5
push 0
push 0x4f77
push edi
call esi
mov eax, dword [ebx + 0x434]
test eax, eax
jne 0x415eb9
push 0
push 0x4e8b
push edi
call esi
mov eax, dword [ebx + 0x408]
test eax, eax
je 0x415ed1
push 0
push 0x4e84
push edi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, dword [ebx + 0x40c]
test eax, eax
je 0x416006
push 0
push 0x4eb0
push edi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x416006
mov eax, dword [ebx + 0x90]
push 0x4ebc
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov eax, dword [ebx + 0x6e4]
test eax, eax
jne 0x415f27
mov eax, dword [ebx + 0x6e0]
test eax, eax
jne 0x415f35
push 0
push 0x4f1f
push edi
call dword [sym.imp.USER32.dll_RemoveMenu]
mov eax, dword [0x4caaf4]
xor esi, esi
cmp eax, 4
ja case.default.0x415f41
jmp dword [eax*4 + 0x41607c]
mov esi, 0x4ec9
jmp case.default.0x415f41
mov esi, 0x4e97
jmp case.default.0x415f41
mov esi, 0x4e98
jmp case.default.0x415f41
mov esi, 0x4e99
jmp case.default.0x415f41
mov esi, 0x4e9a
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push esi
push edi
call ebp
mov ecx, dword [0x4ca928]
lea eax, [ecx + 1]
cmp eax, 6
ja case.default.0x415f83
jmp dword [eax*4 + 0x416090]
mov esi, 0x4ec4
jmp case.default.0x415f83
mov esi, 0x4e9b
jmp case.default.0x415f83
mov esi, 0x4e9c
jmp case.default.0x415f83
mov esi, 0x4e9d
jmp case.default.0x415f83
mov esi, 0x4e9e
jmp case.default.0x415f83
mov esi, 0x4e9f
jmp case.default.0x415f83
mov esi, 0x4ea0
push 8
push esi
push edi
call ebp
mov esi, dword [0x4ca930]
xor edx, edx
test esi, esi
setne dl
add edx, 0x4ea1
push 8
push edx
push edi
call ebp
push 0xf
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x415ff8
mov eax, dword [ebx + 0x6e4]
test eax, eax
jne 0x415ff8
mov eax, dword [ebx + 0x6e0]
test eax, eax
jne 0x416006
push 1
push 0x4f3e
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
test edi, edi
je 0x416049
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x168]
push 0
push eax
push 0
push ecx
push edx
push 2
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [ebx + 0xc]
push 0
push 8
push 0x110b
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret 0xc