Function at 0x401290
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
mov eax, 0x129c
call fcn.00497d00
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x18], bl
cmp edi, 2
jne 0x4012cd
mov edi, 1
mov dword [ebp + 0xc], edi
cmp byte [0x4c50c9], bl
jne 0x4012cd
mov byte [0x4c50c9], 1
mov byte [esp + 0x18], 1
cmp dword [0x4c7bf0], ebx
je 0x401301
cmp dword [0x4c7be0], ebx
je 0x4012ef
mov eax, dword [0x4c7bd8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c7be0], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c7bf0], ebx
mov dword [0x4c7bd8], ebx
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x40131f
mov esi, 0xa
mov dword [ebp + 8], esi
mov byte [esp + 0x58], 1
mov dword [esp + 0x64], ebx
jmp 0x40133d
cmp esi, 5
setle al
mov byte [esp + 0x58], al
test al, al
je 0x401333
mov dword [esp + 0x64], ebx
jmp 0x40133d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x64], eax
cmp dword [0x4c6970], ebx
je 0x40134a
call fcn.00402c40
mov byte [esp + 0xf], bl
cmp dword [0x4c7b44], ebx
je 0x401364
call fcn.00402ab0
test al, al
je 0x401364
mov byte [esp + 0xf], 1
cmp esi, ebx
jle 0x4015d5
cmp edi, 1
jne 0x4015d5
inc dword [0x4c50d8]
mov byte [esp + 0x1a], 1
cmp byte [0x4c50c3], bl
jne 0x4013a5
mov ecx, dword [0x4c4f70]
push ebx
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c50c3], dl
mov byte [esp + 0x23], bl
mov byte [esp + 0x19], bl
mov dword [esp + 0x68], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp + 8], 0
mov esi, eax
mov dword [esp + 0x4c], esi
jle 0x4015de
cmp byte [esp + 0x19], 0
jne 0x4015de
cmp byte [0x4c50c9], 0
jne 0x4015eb
call fcn.00403230
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4013b1
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x401419
mov dword [0x4c7b90], eax
inc dword [esp + 0x68]
cmp dword [0x4c5764], 0
je 0x401454
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call fcn.00402cb0
add esp, 0x18
test al, al
jne 0x4013b1
mov edx, dword [0x4c5708]
test edx, edx
je 0x401b14
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401b14
cmp eax, dword [0x4c4f70]
je 0x401b14
mov eax, dword [esp + 0x28]
cmp eax, 0x414
je 0x401b14
cmp eax, 0x402
je 0x401b14
add eax, 0xffffff00
cmp eax, 9
ja 0x401ab8
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x401ab2
call fcn.00477d50
mov esi, eax
test esi, esi
je 0x401ab2
mov eax, edi
call fcn.0045c150
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x401ab2
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x4014f6
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013b1
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x28], 0x100
jne 0x401a3e
cmp byte [ecx + 0xb8], 0
je 0x401891
mov eax, dword [esp + 0x2c]
cmp eax, 0x22
je 0x401532
cmp eax, 0x21
je 0x401532
cmp eax, 9
je 0x401532
cmp eax, 0x25
je 0x401532
cmp eax, 0x27
jne 0x401891
push edi
mov ebx, edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esp + 0x10]
lea esi, [eax - 3]
cmp esi, dword [edx + 0x10]
jb 0x40155e
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x40155e
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x10]
jae 0x40187b
mov edx, dword [eax + 0x18]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], ebx
lea eax, [edx + ecx*4]
jne 0x40187b
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401883
mov al, byte [ecx + 4]
cmp al, 0xf
je 0x401883
xor ebx, ebx
cmp al, 0x13
mov eax, dword [esp + 0x2c]
jne 0x401972
mov ebx, ecx
cmp eax, 0x25
je 0x4015b4
cmp eax, 0x27
jne 0x401972
mov edx, dword [esp + 0x10]
cmp eax, 0x27
sete al
push 0
movzx ecx, al
mov eax, dword [esp + 0x18]
push 0
push ecx
push edx
call fcn.00468d30
jmp 0x4013b1
mov byte [esp + 0x1a], bl
jmp 0x4013a5
cmp byte [0x4c50c9], 0
je 0x401775
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401775
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c708c]
jne 0x401775
cmp dword [0x4c510c], 0
je 0x40166a
push 0x20
lea edx, [esp + 0xb4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.32770
lea eax, [esp + 0xb0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40165c
test dx, dx
je 0x401658
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40165c
add eax, 4
add ecx, 4
test dx, dx
jne 0x401636
xor eax, eax
jmp 0x401661
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4016bf
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401775
push 0x20
lea ecx, [esp + 0xb4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0xb0]
push str.SysTreeView32
push edx
call fcn.0048c519
add esp, 8
test eax, eax
je 0x4016bf
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.0048c519
add esp, 8
test eax, eax
jne 0x401775
call fcn.00403230
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
neg eax
push 0
sbb esi, esi
push 0
lea ecx, [esp + 0x34]
and esi, 0xfffffcee
push ecx
add esi, 0x311
call edi
test eax, eax
jne 0x401705
push 1
push esi
push 0x20e
push eax
lea edx, [esp + 0x34]
push edx
call edi
jmp 0x4017f0
mov ebx, dword [esp + 0x34]
push 0
push esi
push 0x20e
push 0
lea eax, [esp + 0x34]
push eax
call edi
push 1
test eax, eax
jne 0x401739
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4017f0
mov edx, dword [esp + 0x38]
sub edx, ebx
test edx, edx
jle 0x40175e
push 0x1ff
push 0
push 0
lea eax, [esp + 0x34]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4017f0
push esi
push 0x20e
push 0
lea ecx, [esp + 0x34]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4017f0
cmp dword [0x4c13d4], 0
je 0x4017ce
cmp dword [0x4c5100], 0
jne 0x4017ce
mov eax, dword [0x4c140c]
cmp byte [eax + 0xe8], 0
jne 0x4017c5
cmp byte [eax + 0xea], 0
jne 0x4017c5
cmp dword [eax + 0xdc], 0xffffffff
jle 0x4017c5
call ebx
mov edx, eax
mov eax, dword [0x4c140c]
sub edx, dword [eax + 0xd8]
cmp edx, dword [eax + 0xdc]
jb 0x4017c5
mov byte [eax + 0xe8], 1
movzx eax, byte [eax + 0xe8]
jmp 0x4017d0
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 + 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x401419
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x4c]
cmp ecx, 3
jbe 0x40180a
mov dword [0x4c7b90], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401829
cmp byte [esp + 0x23], 0
jne 0x401829
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x23], 1
jmp 0x4013b1
cmp dword [esp + 0x68], 0
jne 0x401850
cmp byte [esp + 0x58], 0
je 0x401850
test esi, esi
jle 0x401843
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x68], 1
jmp 0x4013b1
call ebx
cmp byte [esp + 0x58], 0
jne 0x40290f
mov edx, dword [esp + 0x64]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x40290f
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013b1
mov dword [esp + 0x14], 0
cmp dword [esp + 0x28], 0x100
jne 0x401a3e
mov eax, dword [esp + 0x2c]
cmp eax, 0x1b
je 0x4018d7
cmp eax, 9
je 0x4018d7
cmp eax, 0x41
jne 0x401a3e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x401a3e
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x401a3e
push edi
mov ebx, edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esp + 0x10]
lea esi, [eax - 3]
cmp esi, dword [edx + 0x10]
jb 0x401903
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x401903
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov ecx, dword [esp + 0x10]
cmp esi, dword [ecx + 0x10]
jae 0x401a36
mov edx, dword [ecx + 0x18]
lea eax, [esi + esi*4]
cmp dword [edx + eax*4], ebx
lea eax, [edx + eax*4]
jne 0x401a36
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a3e
cmp byte [eax + 4], 0xc
jne 0x401a3e
mov edx, dword [esp + 0x2c]
cmp edx, 0x1b
je 0x401a8c
cmp edx, 0x41
je 0x401a6f
test byte [eax + 5], 0x80
je 0x401a3e
mov eax, dword [eax]
push 0x49f878
push 1
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
cmp eax, 0x25
je 0x401883
cmp eax, 0x27
je 0x401883
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401883
cmp dword [esp + 0x2c], 9
mov esi, dword [esp + 0x14]
jne 0x4019be
cmp byte [esi + 4], 0xc
jne 0x4019be
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x401883
test ebx, ebx
jne 0x4019e9
mov bl, byte [esi + 6]
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00468aa0
mov ebx, eax
test ebx, ebx
jne 0x4019ed
xor bl, bl
call fcn.00468aa0
mov ebx, eax
test ebx, ebx
je 0x401883
jmp 0x4019ed
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp eax, 0x22
je 0x401a21
cmp eax, 9
jne 0x401a0d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a21
xor al, al
push 1
push 1
push eax
push esi
mov eax, ebx
call fcn.00468d30
jmp 0x4013b1
mov eax, 1
push eax
push eax
push eax
push esi
mov eax, ebx
call fcn.00468d30
jmp 0x4013b1
mov dword [esp + 0x14], 0
mov eax, dword [0x4c703c]
test eax, eax
je 0x401ab2
cmp dword [esp + 0x28], 0x100
jne 0x401ab2
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xd
jne 0x401a98
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
test byte [eax + 5], 2
jne 0x401a3e
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
mov eax, ecx
call fcn.004652d0
jmp 0x4013b1
cmp ecx, 0x1b
jne 0x401ab2
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
mov edx, dword [0x4c5708]
mov ecx, dword [esp + 0x28]
xor ebx, ebx
test edx, edx
jle 0x401b18
mov eax, dword [0x4c140c]
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
lea ecx, [ecx]
mov ecx, dword [0x4c5114]
mov byte [eax + 0xe4], 1
mov edx, dword [esp + 0x28]
mov dword [eax + 0xe0], edx
mov edx, dword [ecx + ebx*4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [edx + 4]
push eax
call esi
test eax, eax
jne 0x4028fd
mov edx, dword [0x4c5708]
mov eax, dword [0x4c140c]
inc ebx
mov byte [eax + 0xe4], 0
cmp ebx, edx
jl 0x401ad0
mov ecx, dword [esp + 0x28]
cmp ecx, 0x312
ja 0x401c7e
je case.0x401c90.1026
cmp ecx, 0x100
ja 0x401b9a
je 0x401b6c
cmp ecx, 0x12
je 0x401b56
cmp ecx, 0x4b
jne case.0x401c90.1027
mov dword [0x4c50a8], 0
mov byte [esp + 0x19], 1
jmp 0x4013b1
push 0
xor eax, eax
push 0x4c70d0
lea ecx, [eax + 6]
call fcn.00415740
jmp 0x4013b1
mov edx, dword [esp + 0x24]
cmp edx, dword [0x4c4f74]
jne case.0x401c90.1027
cmp dword [esp + 0x2c], 0x1b
jne case.0x401c90.1027
mov eax, dword [0x4c4f70]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013b1
cmp ecx, 0x113
jne case.0x401c90.1027
cmp dword [esp + 0x30], 0
jne case.0x401c90.1027
mov ecx, dword [0x4c4f70]
cmp dword [esp + 0x24], ecx
jne case.0x401c90.1027
cmp dword [0x4c6970], 0
je 0x401bcf
call fcn.00402c40
cmp dword [0x4c7b44], 0
je 0x401be6
call fcn.00402ab0
test al, al
je 0x401be6
mov byte [esp + 0xf], 1
cmp dword [ebp + 0xc], 0
je 0x4013b1
cmp dword [ebp + 8], 1
jl 0x4013b1
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push edx
push eax
call fcn.00402a70
add esp, 8
test eax, eax
je 0x4013b1
cmp byte [esp + 0x18], 0
je 0x401c25
mov byte [0x4c50c9], 0
cmp byte [esp + 0x1a], 0
je 0x401c73
dec dword [0x4c50d8]
test esi, esi
jle 0x401c73
cmp dword [0x4c50d8], 0
jne 0x401c73
cmp dword [0x4c7b44], 0
jne 0x401c73
cmp dword [0x4c6970], 0
jne 0x401c73
cmp byte [0x4c50c3], 0
je 0x401c73
mov eax, dword [0x4c4f70]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c73
mov byte [0x4c50c3], 0
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x400]
cmp eax, 0x15
ja case.0x401c90.1027
movzx eax, byte [eax + 0x4029a8]
jmp dword [eax*4 + 0x40299c]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x401d25
cmp esi, dword [0x4c4f70]
je 0x401d25
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4028ae
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c708c]
jne 0x4028ae
push 0x20
lea edx, [esp + 0xb4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.32770
lea eax, [esp + 0xb0]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40284d
test dx, dx
je 0x401d1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40284d
add eax, 4
add ecx, 4
test dx, dx
jne 0x401cf0
xor eax, eax
jmp 0x402852
mov esi, dword [esp + 0x24]
xor edi, edi
lea eax, [ecx - 0x401]
mov dword [esp + 0x4c], edi
cmp eax, 0x14
ja case.0x401d41.1027
movzx ecx, byte [eax + 0x4029d4]
jmp dword [ecx*4 + 0x4029c0]
xor eax, eax
cmp edx, edi
jle 0x401d61
mov ecx, dword [0x4c5114]
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], esi
je 0x401d6a
inc eax
cmp eax, edx
jl 0x401d54
mov dword [esp + 0x10], edi
jmp case.0x401c90.1027
mov edi, ebx
mov dword [esp + 0x10], edi
test edi, edi
je case.0x401c90.1027
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
movzx ecx, dx
shr edx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x70], edx
cmp ecx, 8
jne 0x401da8
mov dword [esp + 0x1c], edx
mov edx, 0x2af8
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], edx
cmp edx, dword [edi + 0x10]
jae 0x401db8
mov eax, dword [edi + 0x18]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
jmp 0x401dba
xor edx, edx
lea eax, [ecx - 5]
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], 0
mov byte [esp + 0x1b], 0
cmp eax, 4
ja case.default.0x401dd7
jmp dword [eax*4 + 0x4029ec]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x4013b1
lea ecx, [edi + 0x3a]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov ebx, dword [esp + 0x48]
jmp 0x402097
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x4013b1
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov ebx, dword [esp + 0x48]
lea edx, [edi + 0x38]
mov dword [esp + 0x60], edx
jmp 0x402097
mov ebx, dword [edi + 0x28]
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x4013b1
mov ecx, dword [ebx + 4]
mov ebx, dword [esp + 0x48]
lea eax, [edi + 0x39]
mov dword [esp + 0x60], eax
mov al, byte [ecx]
jmp 0x402097
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x4013b1
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov ebx, dword [esp + 0x48]
jmp 0x402097
mov ebx, dword [edi + 0x30]
mov esi, dword [edi + 0x68]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x401e96
test esi, esi
je 0x4013b1
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x401ee9
test esi, esi
je 0x4013b1
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013b1
test edx, edx
je 0x4013b1
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x50], ebx
test ebx, ebx
jne 0x401eda
test byte [edx + 5], 1
je 0x4013b1
mov eax, edi
call fcn.00465270
jmp 0x4013b1
test byte [edx + 5], 4
jne 0x4013b1
mov byte [esp + 0x1b], 1
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov ebx, dword [esp + 0x48]
jmp 0x402097
mov edx, dword [esp + 0x30]
mov eax, 0x4c70d0
call fcn.00401260
mov dword [esp + 0x6c], eax
cmp eax, edi
je 0x4013b1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4013b1
mov edx, dword [eax + 4]
mov al, byte [edx]
mov ebx, dword [esp + 0x48]
jmp 0x402093
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x4c6978]
jae 0x4013b1
mov ecx, dword [0x4c6974]
mov esi, dword [ecx + eax*4]
mov bl, byte [esi + 0x24]
mov dword [esp + 0x54], esi
test bl, bl
je 0x401f87
mov eax, dword [esi]
test eax, eax
je 0x401f58
mov eax, dword [eax]
jmp 0x401f5d
mov eax, 0x4a9e04
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
call fcn.004093f0
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4013b1
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401f8b
cmp al, 3
je 0x401f8b
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.0040c4c0
mov ecx, dword [esi + 8]
cmp word [ecx], di
jne 0x4013b1
cmp byte [esi + 0x2f], 0
je 0x401fc9
movsx dx, byte [esp + 0x30]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
mov word [0x4c7b5c], dx
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov al, byte [edx]
jmp 0x40209b
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
xor eax, eax
mov word [0x4c7b5c], ax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov al, byte [edx]
jmp 0x40209b
mov eax, dword [0x4c7b2c]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
mov ebx, dword [esp + 0x48]
jmp 0x402093
mov edx, dword [esp + 0x2c]
mov ecx, dword [0x4c25d0]
mov eax, edx
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4013b1
mov ecx, dword [eax*4 + 0x4c59c0]
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x74], ecx
test ax, ax
je 0x402055
mov ebx, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x48], ebx
test ax, ax
je 0x402051
jmp 0x402040
mov ebx, dword [ebx + 0x14]
add eax, 0xffff
test ax, ax
jne 0x402040
mov dword [esp + 0x48], ebx
test ebx, ebx
jne 0x40206d
push ecx
lea eax, [esp + 0x44]
call fcn.00409e40
mov ebx, eax
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x4013b1
mov al, byte [ebx + 0x1e]
cmp al, 2
je 0x402088
cmp al, 4
je 0x402088
cmp al, 5
jne 0x40208c
mov ecx, dword [0x4c50fc]
mov dword [esp + 0x40], ecx
jmp 0x40208c
mov dword [esp + 0x40], edi
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov al, byte [eax]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov ecx, dword [0x4c50dc]
mov edx, dword [0x4c13e0]
mov byte [esp + 0x5c], al
cmp ecx, edx
jl 0x4020f8
add edx, 2
cmp ecx, edx
jge 0x4020d6
cmp al, 0xdd
je 0x4020f8
cmp al, 0xc9
je 0x4020f8
cmp al, 0xd7
je 0x4020f8
cmp al, 0xd8
je 0x4020f8
cmp al, 0xd3
je 0x4020f8
cmp al, 0xd4
je 0x4020f8
cmp al, 0xd5
je 0x4020f8
cmp al, 0xd6
je 0x4020f8
cmp dword [esp + 0x4c], 0
je 0x4013b1
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013b1
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402111.1027
movzx edx, byte [eax + 0x402a14]
jmp dword [edx*4 + 0x402a00]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x402129
cmp byte [eax], 0
jne 0x4013b1
xor ebx, ebx
jmp 0x4021d5
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x6c]
mov ebx, dword [eax + 0x18]
je 0x40216d
mov esi, dword [esp + 0x2c]
call fcn.0045c120
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4021d5
cmp dword [esp + 0x24], eax
je 0x4021d5
mov ecx, dword [0x4c4f70]
cmp dword [esp + 0x24], ecx
jne case.0x401c90.1027
jmp 0x4021d5
xor edi, edi
mov dword [esp + 0x10], edi
jmp 0x4021d5
mov ebx, dword [esi + 0x14]
jmp 0x4021d5
cmp byte [0x4c7b28], 0
jne 0x4013b1
xor ebx, ebx
jmp 0x4021d5
mov dl, byte [ebx + 0x1f]
cmp dl, byte [ebx + 0x20]
jb 0x4021d2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
cmp al, 0xdd
je 0x4021d2
cmp al, 0xc9
je 0x4021d2
cmp al, 0xd7
je 0x4021d2
cmp al, 0xd8
je 0x4021d2
cmp al, 0xd3
je 0x4021d2
cmp al, 0xd4
je 0x4021d2
cmp al, 0xd5
je 0x4021d2
cmp al, 0xd6
je 0x4021d2
cmp byte [ebx + 0x23], 0
je 0x4021c4
mov byte [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 4], eax
jmp 0x4013b1
mov ebx, dword [ebx + 0x18]
mov edx, dword [0x4c140c]
cmp ebx, dword [edx + 0x2c]
jge 0x4021ff
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4013b1
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013b1
mov eax, dword [esp + 0x28]
mov byte [esp + 0xf], 1
cmp eax, 0x402
je 0x402275
cmp eax, 0x413
jbe 0x402221
cmp eax, 0x415
jbe 0x4022b6
mov ecx, dword [0x4c7b1c]
mov edx, dword [0x4c7b54]
mov dword [0x4c7b20], ecx
mov dword [0x4c7b58], edx
cmp eax, 0x401
jne 0x40225b
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [0x4c7b1c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c7b54], eax
jmp 0x4022b6
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
mov dword [0x4c7b1c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c7b54], eax
jmp 0x4022b6
mov esi, dword [esp + 0x6c]
mov edx, dword [esi]
push 0x104
push edx
push 0x4c7708
call fcn.0048f214
xor eax, eax
mov word [0x4c7910], ax
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
add esp, 0xc
push 0x104
push edx
push 0x4c7912
call fcn.0048f214
add esp, 0xc
xor eax, eax
mov word [0x4c7b1a], ax
mov esi, dword [0x4c5774]
cmp byte [esi + 0x17], 0
jne 0x4022c5
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4022d2
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4022eb
test byte [esi + 0x15], 4
je 0x4022e6
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x4022fb
cmp al, 2
jne 0x4022f6
call fcn.00401000
jmp 0x4022fb
mov eax, 0x4c7078
push 0x7f
push eax
lea ecx, [esp + 0xf8]
push ecx
call fcn.0048f214
mov eax, dword [esp + 0x68]
add esp, 0xc
push eax
xor edx, edx
push edx
push ebx
mov al, 1
mov word [esp + 0x1fa], dx
call fcn.00403090
mov ebx, dword [0x4c140c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c7b94], eax
mov dword [0x4c7b90], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402358.1027
movzx ecx, byte [eax + 0x402a40]
jmp dword [ecx*4 + 0x402a2c]
mov ecx, dword [esp + 0x44]
xor edx, edx
lea eax, [ecx - 5]
mov word [esp + 0x90], dx
cmp eax, 4
ja case.default.0x402379
jmp dword [eax*4 + 0x402a58]
mov esi, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
lea edi, [ebx + 0x3c]
sete al
mov dword [esp + 0x1c], edx
lea eax, [eax + eax + 1]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x38]
mov dword [edi], ecx
mov edx, dword [esp + 0x3c]
mov dword [edi + 4], edx
test esi, esi
je 0x40244d
cmp eax, 1
jne 0x4023bb
push edi
call fcn.00468ea0
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402436
dec eax
je 0x402428
dec eax
jne 0x40244d
cmp dword [ebx + 0x34], 1
jne 0x4023e7
push eax
mov eax, dword [esi]
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402449
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x80]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi]
push eax
push ecx
mov dword [esp + 0x8c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi]
lea edx, [esp + 0x80]
push edx
push 0
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402449
mov ecx, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
jmp 0x402442
mov edx, dword [esi]
push 0
push 0
push 0x19f
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov esi, edi
call fcn.004745e0
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x4025e9
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x38]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
call fcn.004745e0
mov ecx, dword [edi + 4]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [edi + 4]
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
jmp 0x4025e9
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025f2
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x1c]
push 0x18
push 0
push eax
mov eax, dword [0x4c5774]
call fcn.004010e0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc0], ecx
add dword [edi + 0x20], 2
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x38], eax
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x4026aa
mov byte [ebx], 1
jmp 0x4026b5
mov esi, dword [esp + 0x14]
mov al, byte [esi + 4]
cmp al, 0xa
je 0x40254b
cmp al, 0x18
jne 0x4025e6
mov ecx, dword [esp + 0x38]
lea esi, [ebx + 0x3c]
mov dword [esi], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
call fcn.004745e0
mov esi, dword [esp + 0x14]
jmp 0x4025e2
cmp cl, 0x49
jne 0x4025e6
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x402572
mov eax, 0x53
mov word [esp + 0x90], ax
jmp 0x402587
test ecx, 0x200
je 0x40258e
mov edx, 0x73
mov word [esp + 0x90], dx
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x40259d
mov edx, 0x46
jmp 0x4025aa
test ecx, 0x800
je 0x4025b0
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x4025c2
mov ecx, 0x43
mov word [eax], cx
jmp 0x4025d2
test ecx, 0x2000
je 0x4025d5
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x44], 0x49
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x34], ecx
cmp ecx, 8
je 0x4024cf
cmp ecx, 5
je 0x4024cf
test esi, esi
je 0x40268b
cmp byte [esi + 4], 0x16
jne 0x40268b
push 0x10b8
lea edx, [esp + 0x1f4]
push 0
push edx
call fcn.004953e0
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x1f0]
push ecx
push 0
push 0x703
dec eax
push edx
mov dword [esp + 0x200], 0xd
mov dword [esp + 0x204], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4024e2
cmp word [esp + 0x260], 0
lea eax, [esp + 0x260]
jne 0x402674
lea eax, [esp + 0x200]
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c5774]
push eax
call fcn.00475ef0
jmp 0x4024e2
mov edx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x9c]
push ecx
push edx
call fcn.00475ef0
jmp 0x4024e2
cmp byte [esp + 0x1b], 0
je 0x4026b5
or byte [esi + 5], 4
mov ecx, dword [esp + 0x50]
call fcn.00401220
cmp dword [edi + 4], 0
je 0x40270a
test ebx, ebx
je 0x4026cd
mov byte [ebx], 0
jmp 0x4026d8
cmp byte [esp + 0x1b], 0
je 0x4026d8
and byte [esi + 5], 0xfb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40270a
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [edi + 4]
push 0xffffffffffffffec
push ecx
mov dword [edi + 0x68], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [edi + 4]
or eax, 0x10
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, edi
call fcn.0045e2e0
jmp 0x402807
test edi, edi
je 0x402734
mov eax, dword [edi + 4]
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0x34], 1
add dword [edi + 0x20], 2
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x44], edi
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 0xc]
call fcn.00401220
test edi, edi
je 0x402807
mov esi, edi
call fcn.0045e2e0
jmp 0x402807
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
mov dword [ebx + 0xc0], edx
mov al, byte [esi + 0x25]
mov byte [ebx + 0xf2], al
call fcn.0040c430
jmp 0x402807
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x4027a3
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x40279c
push 0xf
call esi
test eax, eax
jne 0x40279c
mov eax, 2
jmp 0x4027a5
mov eax, 1
jmp 0x4027a5
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c5774]
call fcn.004010e0
mov ecx, dword [0x4c7b2c]
mov byte [0x4c7b28], 1
call fcn.00401220
mov byte [0x4c7b28], 0
jmp 0x402807
mov esi, dword [esp + 0x74]
mov al, byte [esi + 0x12]
cmp al, 0x9c
jb 0x4027e8
cmp al, 0x9f
ja 0x4027e8
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x38], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov dword [ebx + 0xc0], edx
mov cl, byte [eax + 0x21]
mov byte [ebx + 0xf2], cl
push esi
mov ebx, eax
call fcn.0040a1b0
lea edx, [esp + 0xf0]
push edx
call fcn.00403190
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4013b1
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.00402a70
add esp, 8
test eax, eax
je 0x4013b1
mov byte [esp + 0x19], 1
mov byte [esp + 0x58], 1
jmp 0x4013b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4028ae
mov eax, dword [0x4c140c]
lea edx, [esp + 0x24]
mov byte [eax + 0xe4], 1
mov ecx, dword [esp + 0x28]
push edx
push esi
mov dword [eax + 0xe0], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x4028a1
cmp dword [0x4c510c], 0
je 0x402890
push 0x4c5778
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4c140c]
mov byte [eax + 0xe4], 0
jmp 0x4013b1
mov ecx, dword [0x4c140c]
mov byte [ecx + 0xe4], 0
mov eax, dword [0x4c4f84]
test eax, eax
je 0x4028d1
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [0x4c4f70]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013b1
mov eax, dword [0x4c140c]
mov byte [eax + 0xe4], 1
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
mov dword [eax + 0xe0], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x4c140c]
mov byte [ecx + 0xe4], 0
jmp 0x4013b1
cmp esi, 0xffffffff
jle 0x40292d
mov dword [0x4c7b80], 0
mov dword [0x4c7b84], 0
mov dword [0x4c7b90], eax
cmp byte [esp + 0x18], 0
mov dword [0x4c7b94], eax
je 0x402940
mov byte [0x4c50c9], 0
cmp byte [esp + 0x1a], 0
je 0x401c73
dec dword [0x4c50d8]
test esi, esi
jle 0x401c73
cmp dword [0x4c50d8], 0
jne 0x401c73
cmp dword [0x4c7b44], 0
jne 0x401c73
cmp dword [0x4c6970], 0
jne 0x401c73
cmp byte [0x4c50c3], 0
je 0x401c73
mov edx, dword [0x4c4f70]
push 9
push edx
jmp 0x401c62