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 0x491f74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1204
call fcn.0048dd20
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
lea ebx, [edi + 1]
jne 0x4012d3
cmp byte [0x4a6dc8], 0
mov dword [ebp + 0xc], ebx
jne 0x4012d3
mov byte [0x4a6dc8], bl
mov byte [esp + 0x18], bl
cmp dword [0x4a8cdc], edi
je 0x401307
cmp dword [0x4a8ccc], edi
je 0x4012f5
mov eax, dword [0x4a8cc4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a8ccc], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a8cdc], edi
mov dword [0x4a8cc4], 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 [0x4a856c], edi
je 0x401352
call fcn.00402c70
mov byte [esp + 0x13], 0
cmp dword [0x4a9284], edi
je 0x40136d
call fcn.00402ae0
test al, al
je 0x40136d
mov byte [esp + 0x13], 1
cmp esi, edi
jle 0x4015e2
cmp dword [ebp + 0xc], ebx
jne 0x4015e2
add dword [0x4a6dd8], ebx
cmp byte [0x4a6dc2], 0
mov byte [esp + 0x1a], 1
jne 0x4013af
mov ecx, dword [0x4a6c70]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4a6dc2], 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
mov ebx, dword [ebp + 8]
mov esi, eax
mov dword [esp + 0x50], esi
test ebx, ebx
jle 0x4015ec
cmp byte [esp + 0x19], 0
jne 0x4015ec
cmp byte [0x4a6dc8], 0
jne 0x4015f9
call fcn.00403260
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x38]
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 0x401426
mov dword [0x4a92d0], eax
inc dword [esp + 0x70]
cmp dword [0x4a7460], 0
je 0x401461
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
call fcn.00402ce0
add esp, 0x18
test al, al
jne 0x4013bd
mov edx, dword [0x4a7404]
test edx, edx
je 0x401b08
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401b08
cmp eax, dword [0x4a6c70]
je 0x401b08
mov eax, dword [esp + 0x30]
cmp eax, 0x414
je 0x401b08
cmp eax, 0x402
je 0x401b08
add eax, 0xffffff00
cmp eax, 9
ja 0x401aa7
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x401aa1
call fcn.004734d0
mov esi, eax
test esi, esi
je 0x401aa1
mov eax, edi
call fcn.00457e00
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x401aa1
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x401503
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4013bd
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x30], 0x100
jne 0x401a2d
cmp byte [ecx + 0xb8], 0
je 0x401895
mov eax, dword [esp + 0x34]
cmp eax, 0x22
je 0x40153f
cmp eax, 0x21
je 0x40153f
cmp eax, 9
je 0x40153f
cmp eax, 0x25
je 0x40153f
cmp eax, 0x27
jne 0x401895
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 0x40156b
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x40156b
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0xc]
cmp esi, dword [eax + 0x10]
jae 0x40187f
mov edx, dword [eax + 0x18]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], ebx
lea eax, [edx + ecx*4]
jne 0x40187f
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401887
mov al, byte [ecx + 4]
cmp al, 0xf
je 0x401887
xor ebx, ebx
cmp al, 0x13
mov eax, dword [esp + 0x34]
jne 0x401961
mov ebx, ecx
cmp eax, 0x25
je 0x4015c1
cmp eax, 0x27
jne 0x401961
mov edx, dword [esp + 0xc]
cmp eax, 0x27
sete al
push 0
movzx ecx, al
mov eax, dword [esp + 0x18]
push 0
push ecx
push edx
call fcn.00464920
jmp 0x4013bd
mov byte [esp + 0x1a], 0
jmp 0x4013af
cmp byte [0x4a6dc8], 0
je 0x40177d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40177d
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a8c80]
jne 0x40177d
cmp dword [0x4a6e08], 0
je 0x401656
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.00481831
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4016ab
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x40177d
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.004816e1
add esp, 8
test eax, eax
je 0x4016ab
lea eax, [esp + 0xa0]
push str.SysListView32
push eax
call fcn.004816e1
add esp, 8
test eax, eax
jne 0x40177d
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x1ff
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
call esi
test eax, eax
jne 0x4016f0
push 1
call fcn.00403260
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea edx, [esp + 0x3c]
push edx
call esi
jmp 0x4017f8
mov ebx, dword [esp + 0x3c]
push 0
call fcn.00403260
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea eax, [esp + 0x3c]
push eax
call esi
push 1
test eax, eax
jne 0x401734
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
mov ebx, dword [ebp + 8]
jmp 0x4017f8
mov edx, dword [esp + 0x40]
sub edx, ebx
test edx, edx
jle 0x401756
push 0x1ff
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call esi
mov ebx, dword [ebp + 8]
jmp 0x4017f8
call fcn.00403260
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea ecx, [esp + 0x3c]
push ecx
call esi
mov ebx, dword [ebp + 8]
jmp 0x4017f8
cmp dword [0x4a33a4], 0
je 0x4017d6
cmp dword [0x4a6dfc], 0
jne 0x4017d6
mov eax, dword [0x4a3440]
cmp byte [eax + 0xc8], 0
jne 0x4017cd
cmp byte [eax + 0xca], 0
jne 0x4017cd
cmp dword [eax + 0xbc], 0xffffffff
jle 0x4017cd
call edi
mov edx, eax
mov eax, dword [0x4a3440]
sub edx, dword [eax + 0xb8]
cmp edx, dword [eax + 0xbc]
jb 0x4017cd
mov byte [eax + 0xc8], 1
movzx eax, byte [eax + 0xc8]
jmp 0x4017d8
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 + 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x401426
call edi
mov ecx, eax
sub ecx, dword [esp + 0x50]
cmp ecx, 3
jbe 0x401812
mov dword [0x4a92d0], eax
test ebx, ebx
jne 0x40182d
cmp byte [esp + 0x27], bl
jne 0x40182d
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x27], 1
jmp 0x4013bd
cmp dword [esp + 0x70], 0
jne 0x401854
cmp byte [esp + 0x58], 0
je 0x401854
test ebx, ebx
jle 0x401847
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x70], 1
jmp 0x4013bd
call edi
cmp byte [esp + 0x58], 0
jne 0x402938
mov edx, dword [esp + 0x6c]
sub edx, eax
add edx, ebx
cmp edx, 5
jle 0x402938
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013bd
mov dword [esp + 0x14], 0
cmp dword [esp + 0x30], 0x100
jne 0x401a2d
mov eax, dword [esp + 0x34]
cmp eax, 0x1b
je 0x4018c2
cmp eax, 9
je 0x4018c2
cmp eax, 0x41
jne 0x401a2d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x401a2d
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 0x4018ee
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x4018ee
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov ecx, dword [esp + 0xc]
cmp esi, dword [ecx + 0x10]
jae 0x401a25
mov eax, dword [ecx + 0x18]
lea edx, [esi + esi*4]
cmp dword [eax + edx*4], ebx
lea eax, [eax + edx*4]
jne 0x401a25
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a2d
mov edx, eax
cmp byte [edx + 4], 0xc
jne 0x401a2d
mov eax, dword [esp + 0x34]
cmp eax, 0x1b
je 0x401a7b
cmp eax, 0x41
mov eax, edx
je 0x401a5e
test byte [eax + 5], 0x80
je 0x401a2d
mov eax, dword [eax]
push 0x495824
push 1
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
cmp eax, 0x25
je 0x401887
cmp eax, 0x27
je 0x401887
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401887
cmp dword [esp + 0x34], 9
mov esi, dword [esp + 0x14]
jne 0x4019ad
cmp byte [esi + 4], 0xc
jne 0x4019ad
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
jne 0x401887
test ebx, ebx
jne 0x4019d8
mov bl, byte [esi + 6]
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.004646b0
mov ebx, eax
test ebx, ebx
jne 0x4019dc
xor bl, bl
call fcn.004646b0
mov ebx, eax
test ebx, ebx
je 0x401887
jmp 0x4019dc
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
cmp eax, 0x22
je 0x401a10
cmp eax, 9
jne 0x4019fc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a10
xor al, al
push 1
push 1
push eax
push esi
mov eax, ebx
call fcn.00464920
jmp 0x4013bd
mov eax, 1
push eax
push eax
push eax
push esi
mov eax, ebx
call fcn.00464920
jmp 0x4013bd
mov dword [esp + 0x14], 0
mov eax, dword [0x4a8c34]
test eax, eax
je 0x401aa1
cmp dword [esp + 0x30], 0x100
jne 0x401aa1
mov ecx, dword [esp + 0x34]
cmp ecx, 0xd
jne 0x401a87
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
test byte [eax + 5], 2
jne 0x401a2d
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.00460f30
jmp 0x4013bd
cmp ecx, 0x1b
jne 0x401aa1
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4013bd
mov edx, dword [0x4a7404]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
test edx, edx
jle 0x401b0c
mov eax, dword [0x4a3440]
jmp 0x401ac0
mov ecx, dword [0x4a7400]
mov byte [eax + 0xc4], 1
mov edx, dword [esp + 0x30]
mov dword [eax + 0xc0], edx
mov edx, dword [ecx + ebx*4]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x402926
mov edx, dword [0x4a7404]
mov eax, dword [0x4a3440]
inc ebx
mov byte [eax + 0xc4], 0
cmp ebx, edx
jl 0x401ac0
mov ecx, dword [esp + 0x30]
cmp ecx, 0x312
ja 0x401c81
je case.0x401c93.1026
cmp ecx, 0x100
ja 0x401b8e
je 0x401b60
cmp ecx, 0x12
je 0x401b4a
cmp ecx, 0x4b
jne case.0x401c93.1027
mov dword [0x4a6da8], 0
mov byte [esp + 0x19], 1
jmp 0x4013bd
push 0
xor eax, eax
push 0x4a8ce0
lea ecx, [eax + 6]
call fcn.00415220
jmp 0x4013bd
mov edx, dword [esp + 0x2c]
cmp edx, dword [0x4a6c74]
jne case.0x401c93.1027
cmp dword [esp + 0x34], 0x1b
jne case.0x401c93.1027
mov eax, dword [0x4a6c70]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013bd
cmp ecx, 0x113
jne case.0x401c93.1027
cmp dword [esp + 0x38], 0
jne case.0x401c93.1027
mov ecx, dword [0x4a6c70]
cmp dword [esp + 0x2c], ecx
jne case.0x401c93.1027
cmp dword [0x4a856c], 0
je 0x401bc3
call fcn.00402c70
cmp dword [0x4a9284], 0
je 0x401bda
call fcn.00402ae0
test al, al
je 0x401bda
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x4013bd
mov esi, dword [ebp + 8]
cmp esi, 1
jl 0x4013bd
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x6c]
push edx
push eax
call fcn.00402aa0
add esp, 8
test eax, eax
je 0x4013bd
cmp byte [esp + 0x18], 0
je 0x401c18
mov byte [0x4a6dc8], 0
cmp byte [esp + 0x1a], 0
je 0x401c68
dec dword [0x4a6dd8]
cmp dword [ebp + 8], 0
jle 0x401c68
cmp dword [0x4a6dd8], 0
jne 0x401c68
cmp dword [0x4a9284], 0
jne 0x401c68
cmp dword [0x4a856c], 0
jne 0x401c68
cmp byte [0x4a6dc2], 0
je 0x401c68
mov eax, dword [0x4a6c70]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c68
mov byte [0x4a6dc2], 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.0x401c93.1027
movzx eax, byte [eax + 0x4029d0]
jmp dword [eax*4 + 0x4029c4]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x401d59
cmp esi, dword [0x4a6c70]
je 0x401d59
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4028d6
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a8c80]
jne 0x4028d6
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.00481831
add esp, 8
test eax, eax
jne 0x4028d6
mov eax, dword [0x4a3440]
mov byte [eax + 0xc4], 1
mov edx, dword [esp + 0x30]
mov dword [eax + 0xc0], edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
je 0x4028c9
cmp dword [0x4a6e08], 0
je 0x401d43
push 0x4a7478
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x4a3440]
mov byte [ecx + 0xc4], 0
jmp 0x4013bd
mov esi, dword [esp + 0x2c]
xor edi, edi
lea eax, [ecx - 0x401]
mov dword [esp + 0x50], edi
cmp eax, 0x14
ja case.0x401d75.1027
movzx ecx, byte [eax + 0x4029fc]
jmp dword [ecx*4 + 0x4029e8]
xor eax, eax
cmp edx, edi
jle 0x401d95
mov ecx, dword [0x4a7400]
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], esi
je 0x401d9e
inc eax
cmp eax, edx
jl 0x401d88
mov dword [esp + 0xc], edi
jmp case.0x401c93.1027
mov eax, ebx
mov dword [esp + 0xc], eax
cmp eax, edi
je case.0x401c93.1027
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x78], eax
cmp edx, 8
jne 0x401ddf
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]
cmp eax, dword [ecx + 0x10]
jae 0x401df7
mov esi, dword [ecx + 0x18]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
jmp 0x401dfb
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.0x401e10
jmp dword [eax*4 + 0x402a14]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x48], ecx
cmp ecx, edi
je 0x4013bd
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
add ecx, 0x3a
mov dword [esp + 0x5c], ecx
jmp 0x4020a8
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x48], 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 0x4020a8
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x48], 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 0x4020a8
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0x48], ecx
cmp ecx, edi
je 0x4013bd
mov edi, dword [esp + 0x1c]
mov edx, ecx
jmp 0x4020a8
mov esi, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ecx
cmp ecx, edi
je 0x401ed1
cmp esi, edi
je 0x4013bd
xor edi, edi
push edi
push edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x401f1f
cmp esi, edi
je 0x4013bd
push esi
jmp 0x4020f5
cmp dword [esp + 0x14], edi
je 0x4013bd
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x401f10
test byte [ecx + 5], 1
je 0x4013bd
mov eax, dword [esp + 0xc]
call fcn.00460ed0
jmp 0x4013bd
test byte [ecx + 5], 4
jne 0x4013bd
mov byte [esp + 0x1b], 1
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
jmp 0x4020a8
mov edx, dword [esp + 0x38]
mov eax, 0x4a8ce0
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 0x4020ad
mov eax, dword [esp + 0x34]
cmp eax, dword [0x4a8574]
jae 0x4013bd
mov ecx, dword [0x4a8570]
mov esi, dword [ecx + eax*4]
mov bl, byte [esi + 0x24]
mov dword [esp + 0x64], esi
test bl, bl
je 0x401fbe
mov eax, dword [esi]
test eax, eax
je 0x401f8f
mov eax, dword [eax]
jmp 0x401f94
mov eax, 0x4957f9
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
call fcn.00409140
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4013bd
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401fc2
cmp al, 3
je 0x401fc2
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
push eax
mov edi, esi
call fcn.0040c150
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 + 0x38]
mov byte [0x4a929c], dl
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
mov edi, dword [esp + 0x1c]
jmp 0x4020ad
mov edx, dword [0x4a926c]
mov edi, dword [esp + 0x1c]
jmp 0x4020a8
mov ecx, dword [esp + 0x34]
mov edx, dword [0x4a4538]
mov eax, ecx
and eax, 0x3fff
cmp ax, word [edx]
jae 0x4013bd
movzx eax, ax
mov edx, dword [eax*4 + 0x4a75b8]
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x68], edx
test ax, ax
je 0x402067
mov ecx, edx
mov edi, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x1c], edi
test ax, ax
je 0x402063
nop
mov edx, dword [edi + 0x14]
add eax, 0xffff
mov dword [esp + 0x1c], edx
mov edi, edx
test ax, ax
jne 0x402050
test edi, edi
jne 0x402083
mov eax, dword [esp + 0x68]
push eax
lea eax, [esp + 0x50]
call fcn.00409b30
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4013bd
mov edi, eax
mov al, byte [edi + 0x1e]
cmp al, 2
je 0x40209e
cmp al, 4
je 0x40209e
cmp al, 5
jne 0x4020a6
mov ecx, dword [0x4a6df8]
mov dword [esp + 0x4c], ecx
jmp 0x4020a6
mov dword [esp + 0x4c], 0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov al, byte [eax]
mov ecx, dword [0x4a6ddc]
mov edx, dword [0x4a33b0]
mov byte [esp + 0x60], al
cmp ecx, edx
jl 0x40210b
add edx, 2
cmp ecx, edx
jge 0x4020e8
cmp al, 0xdd
je 0x40210b
cmp al, 0xc9
je 0x40210b
cmp al, 0xd7
je 0x40210b
cmp al, 0xd8
je 0x40210b
cmp al, 0xd3
je 0x40210b
cmp al, 0xd4
je 0x40210b
cmp al, 0xd5
je 0x40210b
cmp al, 0xd6
je 0x40210b
mov eax, dword [esp + 0x50]
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 + 0x30]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402124.1027
movzx edx, byte [eax + 0x402a3c]
jmp dword [edx*4 + 0x402a28]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x402140
cmp byte [eax], 0
jne 0x4013bd
mov edi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4021f3
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x74]
mov ebx, dword [eax + 0x18]
test esi, esi
je 0x402181
call fcn.00457dd0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4021f3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4021f3
cmp eax, dword [0x4a6c70]
jne case.0x401c93.1027
jmp 0x4021f3
mov dword [esp + 0xc], 0
jmp 0x4021f3
mov ecx, dword [esp + 0x64]
mov ebx, dword [ecx + 0x14]
jmp 0x4021f3
cmp byte [0x4a9268], 0
jne 0x4013bd
mov edi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4021f3
mov dl, byte [edi + 0x1f]
cmp dl, byte [edi + 0x20]
jb 0x4021f0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
cmp al, 0xdd
je 0x4021f0
cmp al, 0xc9
je 0x4021f0
cmp al, 0xd7
je 0x4021f0
cmp al, 0xd8
je 0x4021f0
cmp al, 0xd3
je 0x4021f0
cmp al, 0xd4
je 0x4021f0
cmp al, 0xd5
je 0x4021f0
cmp al, 0xd6
je 0x4021f0
cmp byte [edi + 0x23], 0
je 0x4021e2
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 [0x4a3440]
cmp ebx, dword [edx + 0x2c]
jge 0x402221
mov eax, dword [esp + 0x50]
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 + 0x30]
mov byte [esp + 0x13], 1
cmp eax, 0x402
je 0x402297
cmp eax, 0x413
jbe 0x402243
cmp eax, 0x415
jbe 0x4022d6
mov ecx, dword [0x4a925c]
mov edx, dword [0x4a9294]
mov dword [0x4a9260], ecx
mov dword [0x4a9298], edx
cmp eax, 0x401
jne 0x40227d
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [0x4a925c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a9294], eax
jmp 0x4022d6
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov dword [0x4a925c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a9294], eax
jmp 0x4022d6
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
push 0x104
push eax
push 0x4a9050
call fcn.00484520
mov byte [0x4a9154], 0
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
add esp, 0xc
push 0x104
push eax
push 0x4a9155
call fcn.00484520
add esp, 0xc
mov byte [0x4a9259], 0
mov esi, dword [0x4a7474]
cmp byte [esi + 0x17], 0
jne 0x4022e5
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4022f2
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x40230b
test byte [esi + 0x15], 4
je 0x402306
mov eax, esi
call fcn.0042d890
mov eax, dword [esi + 8]
jmp 0x40231b
cmp al, 2
jne 0x402316
call fcn.00401000
jmp 0x40231b
mov eax, 0x4a857d
push 0x7f
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00484520
mov ecx, dword [esp + 0x6c]
add esp, 0xc
push ecx
push 0
push ebx
mov al, 1
mov byte [esp + 0x163], 0
call fcn.004030c0
mov ebx, dword [0x4a3440]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a92d4], eax
mov dword [0x4a92d0], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402377.1027
movzx edx, byte [eax + 0x402a68]
jmp dword [edx*4 + 0x402a54]
mov ecx, dword [esp + 0x54]
lea eax, [ecx - 5]
mov byte [esp + 0x80], 0
cmp eax, 4
ja case.default.0x402396
jmp dword [eax*4 + 0x402a80]
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 + 0x40]
mov dword [edi], ecx
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
test esi, esi
je 0x40246a
cmp eax, 1
jne 0x4023dc
push edi
call fcn.00464a90
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402453
dec eax
je 0x402445
dec eax
jne 0x40246a
cmp dword [ebx + 0x34], 1
jne 0x402404
push eax
mov eax, dword [esi]
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402466
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
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 0x402466
mov ecx, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
jmp 0x40245f
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.0046fe60
mov ecx, dword [esp + 0x54]
jmp 0x4025d8
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x40]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
call fcn.0046fe60
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 + 0x54]
jmp 0x4025d8
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025e1
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x20]
push 0x18
push 0
push eax
mov eax, dword [0x4a7474]
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 0x40271f
mov byte [ebx], 1
jmp 0x40272e
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
cmp al, 0xa
je 0x40255f
cmp al, 0x18
jne 0x4025d5
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
lea esi, [ebx + 0x3c]
mov dword [esi], eax
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 4]
call fcn.0046fe60
jmp 0x4025d1
cmp cl, 0x49
jne 0x4025d5
lea eax, [esp + 0x80]
test ecx, 0x100
je 0x40257d
mov byte [esp + 0x80], 0x53
jmp 0x40258d
test ecx, 0x200
je 0x402594
mov byte [esp + 0x80], 0x73
lea eax, [esp + 0x81]
test ecx, 0x400
je 0x4025a1
mov byte [eax], 0x46
jmp 0x4025ac
test ecx, 0x800
je 0x4025ad
mov byte [eax], 0x66
inc eax
test ecx, 0x1000
je 0x4025ba
mov byte [eax], 0x43
jmp 0x4025c5
test ecx, 0x2000
je 0x4025c6
mov byte [eax], 0x63
inc eax
mov byte [eax], 0
mov dword [esp + 0x54], 0x49
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x34], ecx
cmp ecx, 8
je 0x4024e0
cmp ecx, 5
je 0x4024e0
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x402701
cmp byte [esi + 4], 0x16
jne 0x402701
push 0x10b8
lea eax, [esp + 0x15c]
push edi
push eax
call fcn.0048aa20
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 0x4024f5
push 0xffffffffffffffff
cmp word [esp + 0x1cc], di
je 0x40267c
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x1d0]
call fcn.00403500
mov dword [esp + 0x121c], edi
or dword [esp + 0x28], 1
jmp 0x4026a0
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x170]
call fcn.00403500
mov dword [esp + 0x121c], 1
or dword [esp + 0x28], 2
push 1
push edi
push 0xffffffffffffffff
call fcn.00403410
push eax
mov eax, dword [0x4a7474]
push eax
call fcn.004716d0
mov dword [esp + 0x121c], edi
test byte [esp + 0x28], 2
je 0x4026d5
and dword [esp + 0x28], 0xfffffffd
lea eax, [esp + 0xc0]
call fcn.00403430
mov dword [esp + 0x121c], 0xffffffff
test byte [esp + 0x28], 1
je 0x4024f5
and dword [esp + 0x28], 0xfffffffe
lea eax, [esp + 0xcc]
call fcn.00403430
jmp 0x4024f5
mov edx, dword [0x4a7474]
push 1
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x8c]
push ecx
push edx
call fcn.004716d0
jmp 0x4024f5
cmp byte [esp + 0x1b], 0
je 0x40272e
mov eax, dword [esp + 0x14]
or byte [eax + 5], 4
mov ecx, dword [esp + 0x48]
call fcn.00401210
cmp dword [esi + 4], edi
je 0x402782
cmp ebx, edi
je 0x402745
mov byte [ebx], 0
jmp 0x402754
cmp byte [esp + 0x1b], 0
je 0x402754
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x402782
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.00459f20
jmp 0x402883
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4027b2
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 0x402883
mov esi, dword [esp + 0xc]
call fcn.00459f20
jmp 0x402883
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x64]
mov dword [ebx + 0xa0], edx
mov al, byte [esi + 0x25]
mov byte [ebx + 0xd2], al
call fcn.0040c0c0
jmp 0x402883
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x402823
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x40281c
push 0xf
call esi
test eax, eax
jne 0x40281c
mov eax, 2
jmp 0x402825
mov eax, 1
jmp 0x402825
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4a7474]
call fcn.004010d0
mov ecx, dword [0x4a926c]
mov byte [0x4a9268], 1
call fcn.00401210
mov byte [0x4a9268], 0
jmp 0x402883
mov ecx, dword [esp + 0x68]
mov al, byte [ecx + 0x12]
cmp al, 0x9c
jb 0x402868
cmp al, 0x9f
ja 0x402868
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0xa0], eax
mov dl, byte [edi + 0x21]
mov byte [ebx + 0xd2], dl
push ecx
mov ebx, edi
call fcn.00409ec0
lea eax, [esp + 0xd8]
push eax
call fcn.004031c0
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.00402aa0
add esp, 8
test eax, eax
je 0x4013bd
mov byte [esp + 0x19], 1
mov byte [esp + 0x58], 1
jmp 0x4013bd
mov edx, dword [0x4a3440]
mov byte [edx + 0xc4], 0
mov eax, dword [0x4a6c84]
test eax, eax
je 0x4028fa
mov edx, dword [0x4a6c70]
lea ecx, [esp + 0x2c]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4013bd
mov eax, dword [0x4a3440]
mov byte [eax + 0xc4], 1
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x2c]
push edx
mov dword [eax + 0xc0], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [0x4a3440]
mov byte [ecx + 0xc4], 0
jmp 0x4013bd
cmp ebx, 0xffffffff
jle 0x402956
mov dword [0x4a92c0], 0
mov dword [0x4a92c4], 0
mov dword [0x4a92d0], eax
cmp byte [esp + 0x18], 0
mov dword [0x4a92d4], eax
je 0x402969
mov byte [0x4a6dc8], 0
cmp byte [esp + 0x1a], 0
je 0x401c68
dec dword [0x4a6dd8]
test ebx, ebx
jle 0x401c68
cmp dword [0x4a6dd8], 0
jne 0x401c68
cmp dword [0x4a9284], 0
jne 0x401c68
cmp dword [0x4a856c], 0
jne 0x401c68
cmp byte [0x4a6dc2], 0
je 0x401c68
mov edx, dword [0x4a6c70]
push 9
push edx
jmp 0x401c57