Function at 0x401280
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Hide graphical window
Log keystrokes via polling
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a32a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1204
call fcn.0049fa60
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov dword [esp + 0x44], edi
mov byte [esp + 0x18], 0
lea ebx, [edi + 1]
jne 0x4012d3
cmp byte [0x4bb8cd], 0
mov dword [ebp + 0xc], ebx
jne 0x4012d3
mov byte [0x4bb8cd], bl
mov byte [esp + 0x18], bl
cmp dword [0x4bd7dc], edi
je 0x401307
cmp dword [0x4bd7cc], edi
je 0x4012f5
mov eax, dword [0x4bd7c4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4bd7cc], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4bd7dc], edi
mov dword [0x4bd7c4], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x401327
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x58], 1
mov dword [esp + 0x6c], edi
jmp 0x401345
cmp esi, 5
setle al
mov byte [esp + 0x58], al
test al, al
je 0x40133b
mov dword [esp + 0x6c], edi
jmp 0x401345
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
cmp dword [0x4bd06c], edi
je 0x401352
call fcn.00402c50
mov byte [esp + 0x13], 0
cmp dword [0x4bdda4], edi
je 0x40136d
call fcn.00402ac0
test al, al
je 0x40136d
mov byte [esp + 0x13], 1
cmp esi, edi
jle 0x4015e8
cmp dword [ebp + 0xc], ebx
jne 0x4015e8
add dword [0x4bb8d8], ebx
cmp byte [0x4bb8c7], 0
mov byte [esp + 0x1a], 1
jne 0x4013af
mov ecx, dword [0x4bb770]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4bb8c7], dl
mov byte [esp + 0x27], 0
mov byte [esp + 0x19], 0
mov dword [esp + 0x70], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp + 8], 0
mov esi, eax
mov dword [esp + 0x48], esi
jle 0x4015f2
cmp byte [esp + 0x19], 0
jne 0x4015f2
cmp byte [0x4bb8cd], 0
jne 0x4015ff
call fcn.004032d0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x4013bd
call edi
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x401425
mov dword [0x4bddf0], eax
inc dword [esp + 0x70]
cmp dword [0x4bbf64], 0
je 0x401460
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.00402cc0
add esp, 0x18
test al, al
jne 0x4013bd
mov edx, dword [0x4bbf08]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test edx, edx
je 0x401af0
test esi, esi
je 0x401af0
cmp esi, dword [0x4bb770]
je 0x401af0
cmp ecx, 0x414
je 0x401af0
cmp ecx, 0x402
je 0x401af0
lea eax, [ecx - 0x100]
cmp eax, 9
ja 0x401a8b
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
mov dword [esp + 0x48], edi
test edi, edi
je 0x401a7d
call fcn.004836f0
mov esi, eax
test esi, esi
je 0x401a7d
mov eax, edi
call fcn.004628c0
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x401a7d
mov eax, dword [edx + 0x74]
test eax, eax
je 0x401509
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4013bd
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x100
jne 0x401a0b
cmp byte [edx + 0xb8], 0
mov edx, dword [esp + 0x30]
je 0x40193a
cmp edx, 0x22
je 0x401547
cmp edx, 0x21
je 0x401547
cmp edx, 9
je 0x401547
cmp edx, 0x25
je 0x401547
cmp edx, 0x27
jne 0x40193a
push edi
mov ebx, edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esp + 0xc]
lea esi, [eax - 3]
cmp esi, dword [edx + 0x10]
jb 0x401573
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x401573
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0xc]
cmp esi, dword [eax + 0x10]
jae 0x40186d
mov edx, dword [eax + 0x18]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], ebx
lea eax, [edx + ecx*4]
jne 0x40186d
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x401926
mov al, byte [esi + 4]
cmp al, 0xf
je 0x401926
xor ebx, ebx
cmp al, 0x13
mov eax, dword [esp + 0x30]
jne 0x40187a
mov ebx, esi
cmp eax, 0x25
je 0x4015c9
cmp eax, 0x27
jne 0x40187a
mov edx, dword [esp + 0xc]
cmp eax, 0x27
sete al
push 0
movzx ecx, al
push 0
push ecx
push edx
mov eax, esi
call fcn.0046f280
jmp 0x4013bd
mov byte [esp + 0x1a], 0
jmp 0x4013af
cmp byte [0x4bb8cd], 0
je 0x401767
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401767
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4bd780]
jne 0x401767
cmp dword [0x4bb90c], 0
je 0x40165c
push 0x20
lea edx, [esp + 0xa4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0xa0]
push str.32770
push eax
call fcn.00491ba1
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4016b1
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401767
push 0x20
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0xa0]
push str.SysTreeView32
push edx
call fcn.00491a51
add esp, 8
test eax, eax
je 0x4016b1
lea eax, [esp + 0xa0]
push str.SysListView32
push eax
call fcn.00491a51
add esp, 8
test eax, eax
jne 0x401767
call fcn.004032d0
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x1ff
neg eax
push 0
sbb esi, esi
push 0
lea ecx, [esp + 0x38]
and esi, 0xfffffcee
push ecx
add esi, 0x311
call ebx
test eax, eax
jne 0x4016f7
push 1
push esi
push 0x20e
push eax
lea edx, [esp + 0x38]
push edx
call ebx
jmp 0x4017e2
mov edi, dword [esp + 0x38]
push 0
push esi
push 0x20e
push 0
lea eax, [esp + 0x38]
push eax
call ebx
push 1
test eax, eax
jne 0x40172b
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x38]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4017e2
mov edx, dword [esp + 0x3c]
sub edx, edi
test edx, edx
jle 0x401750
push 0x1ff
push 0
push 0
lea eax, [esp + 0x38]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4017e2
push esi
push 0x20e
push 0
lea ecx, [esp + 0x38]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4017e2
cmp dword [0x4b73c8], 0
je 0x4017c0
cmp dword [0x4bb900], 0
jne 0x4017c0
mov eax, dword [0x4b7468]
cmp byte [eax + 0xc8], 0
jne 0x4017b7
cmp byte [eax + 0xca], 0
jne 0x4017b7
cmp dword [eax + 0xbc], 0xffffffff
jle 0x4017b7
call edi
mov edx, eax
mov eax, dword [0x4b7468]
sub edx, dword [eax + 0xb8]
cmp edx, dword [eax + 0xbc]
jb 0x4017b7
mov byte [eax + 0xc8], 1
movzx eax, byte [eax + 0xc8]
jmp 0x4017c2
xor eax, eax
neg eax
sbb eax, eax
push 1
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x401425
call edi
mov ecx, eax
sub ecx, dword [esp + 0x48]
cmp ecx, 3
jbe 0x4017fc
mov dword [0x4bddf0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40181b
cmp byte [esp + 0x27], 0
jne 0x40181b
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x27], 1
jmp 0x4013bd
cmp dword [esp + 0x70], 0
jne 0x401842
cmp byte [esp + 0x58], 0
je 0x401842
test esi, esi
jle 0x401835
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x70], 1
jmp 0x4013bd
call edi
cmp byte [esp + 0x58], 0
jne 0x402918
mov edx, dword [esp + 0x6c]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x402918
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013bd
mov dword [esp + 0x14], 0
jmp 0x401926
cmp eax, 0x25
je 0x401926
cmp eax, 0x27
je 0x401926
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401926
mov edi, dword [esp + 0x30]
cmp edi, 9
jne 0x4018c4
cmp byte [esi + 4], 0xc
jne 0x4018c4
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
jne 0x401922
mov edi, dword [esp + 0x30]
test ebx, ebx
jne 0x4018e7
mov bl, byte [esi + 6]
mov ecx, dword [esp + 0xc]
call fcn.0046f010
mov ebx, eax
test ebx, ebx
jne 0x4018e7
xor bl, bl
call fcn.0046f010
mov ebx, eax
test ebx, ebx
je 0x401922
cmp edi, 0x22
je 0x401907
cmp edi, 9
jne 0x401903
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401907
xor al, al
jmp 0x40190c
mov eax, 1
mov edx, dword [esp + 0xc]
push 1
push 1
push eax
push edx
mov eax, ebx
call fcn.0046f280
jmp 0x4013bd
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
cmp ecx, 0x100
jne 0x401a0f
cmp edx, 0x1b
je 0x40197c
cmp edx, 9
je 0x40197c
cmp edx, 0x41
jne 0x401a0f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a07
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
jne 0x401a07
push edi
mov ebx, edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0xc]
cmp esi, dword [eax + 0x10]
jb 0x4019a8
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x4019a8
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov ecx, dword [esp + 0xc]
cmp esi, dword [ecx + 0x10]
jae 0x4019ff
mov eax, dword [ecx + 0x18]
lea edx, [esi + esi*4]
cmp dword [eax + edx*4], ebx
lea eax, [eax + edx*4]
jne 0x4019ff
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a07
mov edx, eax
cmp byte [edx + 4], 0xc
jne 0x401a07
mov eax, dword [esp + 0x30]
cmp eax, 0x1b
je 0x401a57
cmp eax, 0x41
mov eax, edx
je 0x401a3a
test byte [eax + 5], 0x80
je 0x401a07
mov eax, dword [eax]
push 0x4a6894
push 1
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [0x4bd734]
test eax, eax
je 0x401a81
cmp ecx, 0x100
jne 0x401a81
cmp edx, 0xd
jne 0x401a63
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
test byte [eax + 5], 2
jne 0x401a07
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
mov eax, ecx
call fcn.0046b890
jmp 0x4013bd
cmp edx, 0x1b
jne 0x401a81
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x4bbf08]
mov esi, dword [esp + 0x28]
xor ebx, ebx
test edx, edx
jle 0x401af0
mov eax, dword [0x4b7468]
jmp 0x401aa0
mov ecx, dword [0x4bb914]
mov byte [eax + 0xc4], 1
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc0], edx
mov edx, dword [ecx + ebx*4]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x402906
mov edx, dword [0x4bbf08]
mov eax, dword [0x4b7468]
inc ebx
mov byte [eax + 0xc4], 0
cmp ebx, edx
jl 0x401aa0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp ecx, 0x312
ja 0x401c5e
je case.0x401c70.1026
cmp ecx, 0x100
ja 0x401b6f
je 0x401b44
cmp ecx, 0x12
je 0x401b2e
cmp ecx, 0x4b
jne case.0x401c70.1027
mov dword [0x4bb8a8], 0
mov byte [esp + 0x19], 1
jmp 0x4013bd
push 0
xor eax, eax
push 0x4bd7e0
lea ecx, [eax + 6]
call fcn.00419c80
jmp 0x4013bd
cmp esi, dword [0x4bb774]
jne case.0x401c70.1027
cmp dword [esp + 0x30], 0x1b
jne case.0x401c70.1027
mov edx, dword [0x4bb770]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013bd
cmp ecx, 0x113
jne case.0x401c70.1027
cmp dword [esp + 0x34], 0
jne case.0x401c70.1027
cmp esi, dword [0x4bb770]
jne case.0x401c70.1027
cmp dword [0x4bd06c], 0
je 0x401ba0
call fcn.00402c50
cmp dword [0x4bdda4], 0
je 0x401bb7
call fcn.00402ac0
test al, al
je 0x401bb7
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x4013bd
mov esi, dword [ebp + 8]
cmp esi, 1
jl 0x4013bd
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.00402a80
add esp, 8
test eax, eax
je 0x4013bd
cmp byte [esp + 0x18], 0
je 0x401bf5
mov byte [0x4bb8cd], 0
cmp byte [esp + 0x1a], 0
je 0x401c45
dec dword [0x4bb8d8]
cmp dword [ebp + 8], 0
jle 0x401c45
cmp dword [0x4bb8d8], 0
jne 0x401c45
cmp dword [0x4bdda4], 0
jne 0x401c45
cmp dword [0x4bd06c], 0
jne 0x401c45
cmp byte [0x4bb8c7], 0
je 0x401c45
mov eax, dword [0x4bb770]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c45
mov byte [0x4bb8c7], 0
mov ecx, dword [esp + 0x1214]
mov al, byte [esp + 0x13]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x400]
cmp eax, 0x15
ja case.0x401c70.1027
movzx eax, byte [eax + 0x4029b0]
jmp dword [eax*4 + 0x4029a4]
test esi, esi
je case.0x401c70.1026
cmp esi, dword [0x4bb770]
jne case.0x401c70.1027
xor edi, edi
lea eax, [ecx - 0x401]
mov dword [esp + 0x48], edi
cmp eax, 0x14
ja case.0x401c9f.1027
movzx ecx, byte [eax + 0x4029dc]
jmp dword [ecx*4 + 0x4029c8]
xor eax, eax
cmp edx, edi
jle 0x401cc3
mov ecx, dword [0x4bb914]
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], esi
je 0x401d6a
inc eax
cmp eax, edx
jl 0x401cb2
mov dword [esp + 0xc], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4028b6
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4bd780]
jne 0x4028b6
push 0x20
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea ecx, [esp + 0xa0]
push str.32770
push ecx
call fcn.00491ba1
add esp, 8
test eax, eax
jne 0x4028b6
mov eax, dword [0x4b7468]
mov byte [eax + 0xc4], 1
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc0], edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
je 0x4028a9
cmp dword [0x4bb90c], 0
je 0x401d58
push 0x4bbf78
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x4b7468]
mov byte [ecx + 0xc4], 0
jmp 0x4013bd
mov eax, ebx
mov dword [esp + 0xc], eax
cmp eax, edi
je case.0x401c70.1027
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x78], eax
cmp edx, 8
jne 0x401dab
mov dword [esp + 0x78], 0x2af8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0xc]
xor edi, edi
cmp eax, dword [ecx + 0x10]
jae 0x401dc5
mov esi, dword [ecx + 0x18]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
jmp 0x401dc9
mov dword [esp + 0x14], edi
lea eax, [edx - 5]
mov dword [esp + 0x5c], edi
mov byte [esp + 0x1b], 0
cmp eax, 4
ja case.default.0x401dde
jmp dword [eax*4 + 0x4029f4]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x4c], ecx
cmp ecx, edi
je 0x4013bd
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
add ecx, 0x3a
mov dword [esp + 0x5c], ecx
jmp 0x402088
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x4c], ecx
cmp ecx, edi
je 0x4013bd
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
add edx, 0x38
mov dword [esp + 0x5c], edx
mov edx, ecx
jmp 0x402088
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x4c], ecx
cmp ecx, edi
je 0x4013bd
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
add eax, 0x39
mov dword [esp + 0x5c], eax
mov edx, ecx
jmp 0x402088
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0x4c], ecx
cmp ecx, edi
je 0x4013bd
mov edi, dword [esp + 0x1c]
mov edx, ecx
jmp 0x402088
mov esi, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
cmp ecx, edi
je 0x401e9d
cmp esi, edi
je 0x4013bd
push edi
push edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x401ef8
cmp esi, edi
je 0x4013bd
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x68], edi
jmp 0x4013bd
cmp dword [esp + 0x14], edi
je 0x4013bd
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
cmp eax, edi
jne 0x401ee9
test byte [ecx + 5], 1
je 0x4013bd
mov eax, dword [esp + 0xc]
call fcn.0046b830
jmp 0x4013bd
test byte [ecx + 5], 4
jne 0x4013bd
mov byte [esp + 0x1b], 1
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
jmp 0x402088
mov edx, dword [esp + 0x34]
mov eax, 0x4bd7e0
call fcn.00401250
mov dword [esp + 0x74], eax
cmp eax, edi
je 0x4013bd
mov ecx, eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4013bd
mov edx, dword [eax + 4]
mov al, byte [edx]
mov edi, dword [esp + 0x1c]
jmp 0x40208d
mov eax, dword [esp + 0x30]
cmp eax, dword [0x4bd074]
jae 0x4013bd
mov ecx, dword [0x4bd070]
mov esi, dword [ecx + eax*4]
mov bl, byte [esi + 0x24]
mov dword [esp + 0x64], esi
test bl, bl
je 0x401f97
mov eax, dword [esi]
test eax, eax
je 0x401f68
mov eax, dword [eax]
jmp 0x401f6d
mov eax, 0x4a6869
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
call fcn.0040a4d0
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x4013bd
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401f9b
cmp al, 3
je 0x401f9b
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x34]
push eax
mov edi, esi
call fcn.0040d490
mov ecx, dword [edi + 8]
cmp byte [ecx], 0
jne 0x4013bd
mov dl, byte [edi + 0x2f]
neg dl
sbb dl, dl
and dl, byte [esp + 0x34]
mov byte [0x4bddbc], dl
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
mov edi, dword [esp + 0x1c]
jmp 0x40208d
mov edx, dword [0x4bdd8c]
mov edi, dword [esp + 0x1c]
jmp 0x402088
mov ecx, dword [esp + 0x30]
mov edx, dword [0x4b85b0]
mov eax, ecx
and eax, 0x3fff
cmp ax, word [edx]
jae 0x4013bd
movzx eax, ax
mov edx, dword [eax*4 + 0x4bc0b8]
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x68], edx
test ax, ax
je 0x402047
mov ecx, edx
mov edi, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x1c], edi
test ax, ax
je 0x402043
jmp 0x402030
mov edx, dword [edi + 0x14]
add eax, 0xffff
mov dword [esp + 0x1c], edx
mov edi, edx
test ax, ax
jne 0x402030
test edi, edi
jne 0x402063
mov eax, dword [esp + 0x68]
push eax
lea eax, [esp + 0x58]
call fcn.0040aec0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4013bd
mov edi, eax
mov al, byte [edi + 0x1e]
cmp al, 2
je 0x40207e
cmp al, 4
je 0x40207e
cmp al, 5
jne 0x402086
mov ecx, dword [0x4bb8fc]
mov dword [esp + 0x54], ecx
jmp 0x402086
mov dword [esp + 0x54], 0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov al, byte [eax]
mov ecx, dword [0x4bb8dc]
mov edx, dword [0x4b73d4]
mov byte [esp + 0x60], al
cmp ecx, edx
jl 0x4020eb
add edx, 2
cmp ecx, edx
jge 0x4020c8
cmp al, 0xdf
je 0x4020eb
cmp al, 0xcb
je 0x4020eb
cmp al, 0xd9
je 0x4020eb
cmp al, 0xda
je 0x4020eb
cmp al, 0xd5
je 0x4020eb
cmp al, 0xd6
je 0x4020eb
cmp al, 0xd7
je 0x4020eb
cmp al, 0xd8
je 0x4020eb
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4013bd
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x68], 0
jmp 0x4013bd
mov eax, dword [esp + 0x2c]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402104.1027
movzx edx, byte [eax + 0x402a1c]
jmp dword [edx*4 + 0x402a08]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x402120
cmp byte [eax], 0
jne 0x4013bd
mov edi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4021d3
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
mov ebx, dword [eax + 0x18]
test esi, esi
je 0x402161
call fcn.00462890
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4021d3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4021d3
cmp eax, dword [0x4bb770]
jne case.0x401c70.1027
jmp 0x4021d3
mov dword [esp + 0xc], 0
jmp 0x4021d3
mov ecx, dword [esp + 0x64]
mov ebx, dword [ecx + 0x14]
jmp 0x4021d3
cmp byte [0x4bdd88], 0
jne 0x4013bd
mov edi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4021d3
mov dl, byte [edi + 0x1f]
cmp dl, byte [edi + 0x20]
jb 0x4021d0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
cmp al, 0xdf
je 0x4021d0
cmp al, 0xcb
je 0x4021d0
cmp al, 0xd9
je 0x4021d0
cmp al, 0xda
je 0x4021d0
cmp al, 0xd5
je 0x4021d0
cmp al, 0xd6
je 0x4021d0
cmp al, 0xd7
je 0x4021d0
cmp al, 0xd8
je 0x4021d0
cmp byte [edi + 0x23], 0
je 0x4021c2
mov byte [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 4], eax
jmp 0x4013bd
mov ebx, dword [edi + 0x18]
mov edx, dword [0x4b7468]
cmp ebx, dword [edx + 0x2c]
jge 0x402201
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4013bd
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x68], 0
jmp 0x4013bd
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x13], 1
cmp eax, 0x402
je 0x402277
cmp eax, 0x413
jbe 0x402223
cmp eax, 0x415
jbe 0x4022b6
mov ecx, dword [0x4bdd7c]
mov edx, dword [0x4bddb4]
mov dword [0x4bdd80], ecx
mov dword [0x4bddb8], edx
cmp eax, 0x401
jne 0x40225d
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [0x4bdd7c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4bddb4], eax
jmp 0x4022b6
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov dword [0x4bdd7c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4bddb4], eax
jmp 0x4022b6
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
push 0x104
push eax
push 0x4bdb70
call fcn.004954d0
mov byte [0x4bdc74], 0
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
add esp, 0xc
push 0x104
push eax
push 0x4bdc75
call fcn.004954d0
add esp, 0xc
mov byte [0x4bdd79], 0
mov esi, dword [0x4bbf74]
cmp byte [esi + 0x17], 0
jne 0x4022c5
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4022d2
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4022eb
test byte [esi + 0x15], 4
je 0x4022e6
mov eax, esi
call fcn.00433620
mov eax, dword [esi + 8]
jmp 0x4022fb
cmp al, 2
jne 0x4022f6
call fcn.00401000
jmp 0x4022fb
mov eax, 0x4bd07e
push 0x7f
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.004954d0
mov ecx, dword [esp + 0x6c]
add esp, 0xc
push ecx
push 0
push ebx
mov al, 1
mov byte [esp + 0x163], 0
call fcn.00403130
mov ebx, dword [0x4b7468]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4bddf4], eax
mov dword [0x4bddf0], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402357.1027
movzx edx, byte [eax + 0x402a48]
jmp dword [edx*4 + 0x402a34]
mov ecx, dword [esp + 0x50]
lea eax, [ecx - 5]
mov byte [esp + 0x80], 0
cmp eax, 4
ja case.default.0x402376
jmp dword [eax*4 + 0x402a60]
mov esi, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x20], eax
lea edi, [ebx + 0x3c]
sete al
mov dword [esp + 0x20], 0
lea eax, [eax + eax + 1]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov edx, dword [esp + 0x40]
mov dword [edi + 4], edx
test esi, esi
je 0x40244a
cmp eax, 1
jne 0x4023bc
push edi
call fcn.0046f3f0
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402433
dec eax
je 0x402425
dec eax
jne 0x40244a
cmp dword [ebx + 0x34], 1
jne 0x4023e4
push eax
mov eax, dword [esi]
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402446
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x90]
mov dword [esp + 0x90], ecx
mov ecx, dword [esi]
push eax
push ecx
mov dword [esp + 0x9c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi]
lea edx, [esp + 0x90]
push edx
push 0
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402446
mov ecx, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
jmp 0x40243f
mov edx, dword [esi]
push 0
push 0
push 0x19f
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov esi, edi
call fcn.0047efb0
mov ecx, dword [esp + 0x50]
jmp 0x4025b8
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x3c]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x40]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
call fcn.0047efb0
mov ecx, dword [edi + 4]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [edi + 4]
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x50]
jmp 0x4025b8
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025c1
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x20]
push 0x18
push 0
push eax
mov eax, dword [0x4bbf74]
call fcn.004010d0
xor edi, edi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xa0], ecx
add dword [esi + 0x20], 2
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x38], eax
mov ebx, dword [esp + 0x5c]
cmp ebx, edi
je 0x4026ff
mov byte [ebx], 1
jmp 0x40270e
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
cmp al, 0xa
je 0x40253f
cmp al, 0x18
jne 0x4025b5
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
lea esi, [ebx + 0x3c]
mov dword [esi], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 4]
call fcn.0047efb0
jmp 0x4025b1
cmp cl, 0x49
jne 0x4025b5
lea eax, [esp + 0x80]
test ecx, 0x100
je 0x40255d
mov byte [esp + 0x80], 0x53
jmp 0x40256d
test ecx, 0x200
je 0x402574
mov byte [esp + 0x80], 0x73
lea eax, [esp + 0x81]
test ecx, 0x400
je 0x402581
mov byte [eax], 0x46
jmp 0x40258c
test ecx, 0x800
je 0x40258d
mov byte [eax], 0x66
inc eax
test ecx, 0x1000
je 0x40259a
mov byte [eax], 0x43
jmp 0x4025a5
test ecx, 0x2000
je 0x4025a6
mov byte [eax], 0x63
inc eax
mov byte [eax], 0
mov dword [esp + 0x50], 0x49
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x34], ecx
cmp ecx, 8
je 0x4024c0
cmp ecx, 5
je 0x4024c0
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x4026e1
cmp byte [esi + 4], 0x16
jne 0x4026e1
push 0x10b8
lea eax, [esp + 0x15c]
push edi
push eax
call fcn.0049a020
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x158]
push edx
push edi
push 0x703
dec ecx
push eax
mov dword [esp + 0x168], 0xd
mov dword [esp + 0x16c], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4024d5
push 0xffffffffffffffff
cmp word [esp + 0x1cc], di
je 0x40265c
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x1d0]
call fcn.00403570
mov dword [esp + 0x121c], edi
or dword [esp + 0x44], 1
jmp 0x402680
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x170]
call fcn.00403570
mov dword [esp + 0x121c], 1
or dword [esp + 0x44], 2
push 1
push edi
push 0xffffffffffffffff
call fcn.00403480
push eax
mov eax, dword [0x4bbf74]
push eax
call fcn.00481890
mov dword [esp + 0x121c], edi
test byte [esp + 0x44], 2
je 0x4026b5
and dword [esp + 0x44], 0xfffffffd
lea eax, [esp + 0xc0]
call fcn.004034a0
mov dword [esp + 0x121c], 0xffffffff
test byte [esp + 0x44], 1
je 0x4024d5
and dword [esp + 0x44], 0xfffffffe
lea eax, [esp + 0xcc]
call fcn.004034a0
jmp 0x4024d5
mov edx, dword [0x4bbf74]
push 1
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x8c]
push ecx
push edx
call fcn.00481890
jmp 0x4024d5
cmp byte [esp + 0x1b], 0
je 0x40270e
mov eax, dword [esp + 0x14]
or byte [eax + 5], 4
mov ecx, dword [esp + 0x4c]
call fcn.00401210
cmp dword [esi + 4], edi
je 0x402762
cmp ebx, edi
je 0x402725
mov byte [ebx], 0
jmp 0x402734
cmp byte [esp + 0x1b], 0
je 0x402734
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x402762
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
mov dword [esi + 0x68], edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [esi + 4]
or eax, 0x10
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, dword [esp + 0xc]
call fcn.004649e0
jmp 0x402863
mov esi, dword [esp + 0xc]
test esi, esi
je 0x402792
mov eax, dword [esi + 4]
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0x34], 1
add dword [esi + 0x20], 2
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0xc]
call fcn.00401210
test esi, esi
je 0x402863
mov esi, dword [esp + 0xc]
call fcn.004649e0
jmp 0x402863
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x64]
mov dword [ebx + 0xa0], edx
mov al, byte [esi + 0x25]
mov byte [ebx + 0xd2], al
call fcn.0040d400
jmp 0x402863
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x402803
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x4027fc
push 0xf
call esi
test eax, eax
jne 0x4027fc
mov eax, 2
jmp 0x402805
mov eax, 1
jmp 0x402805
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4bbf74]
call fcn.004010d0
mov ecx, dword [0x4bdd8c]
mov byte [0x4bdd88], 1
call fcn.00401210
mov byte [0x4bdd88], 0
jmp 0x402863
mov ecx, dword [esp + 0x68]
mov al, byte [ecx + 0x12]
cmp al, 0x9c
jb 0x402848
cmp al, 0x9f
ja 0x402848
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x54]
mov dword [ebx + 0xa0], eax
mov dl, byte [edi + 0x21]
mov byte [ebx + 0xd2], dl
push ecx
mov ebx, edi
call fcn.0040b250
lea eax, [esp + 0xd8]
push eax
call fcn.00403230
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4013bd
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a80
add esp, 8
test eax, eax
je 0x4013bd
mov byte [esp + 0x19], 1
mov byte [esp + 0x58], 1
jmp 0x4013bd
mov edx, dword [0x4b7468]
mov byte [edx + 0xc4], 0
mov eax, dword [0x4bb784]
test eax, eax
je 0x4028da
mov edx, dword [0x4bb770]
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4013bd
mov eax, dword [0x4b7468]
mov byte [eax + 0xc4], 1
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
mov dword [eax + 0xc0], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [0x4b7468]
mov byte [ecx + 0xc4], 0
jmp 0x4013bd
cmp esi, 0xffffffff
jle 0x402936
mov dword [0x4bdde0], 0
mov dword [0x4bdde4], 0
mov dword [0x4bddf0], eax
cmp byte [esp + 0x18], 0
mov dword [0x4bddf4], eax
je 0x402949
mov byte [0x4bb8cd], 0
cmp byte [esp + 0x1a], 0
je 0x401c45
dec dword [0x4bb8d8]
test esi, esi
jle 0x401c45
cmp dword [0x4bb8d8], 0
jne 0x401c45
cmp dword [0x4bdda4], 0
jne 0x401c45
cmp dword [0x4bd06c], 0
jne 0x401c45
cmp byte [0x4bb8c7], 0
je 0x401c45
mov edx, dword [0x4bb770]
push 9
push edx
jmp 0x401c34