Function at 0x401350
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
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
sub esp, 0x1e4
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov byte [esp + 0x1b], 0
lea ebx, [edi + 1]
jne 0x401385
cmp byte [0x4c0e64], 0
mov dword [ebp + 0xc], ebx
jne 0x401385
mov byte [0x4c0e64], bl
mov byte [esp + 0x1b], bl
cmp dword [0x4c2ffc], edi
je 0x4013b9
cmp dword [0x4c2fec], edi
je 0x4013a7
mov eax, dword [0x4c2fe4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c2fec], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c2ffc], edi
mov dword [0x4c2fe4], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x4013d9
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x6c], edi
jmp 0x4013f7
cmp esi, 5
setle al
mov byte [esp + 0x5c], al
test al, al
je 0x4013ed
mov dword [esp + 0x6c], edi
jmp 0x4013f7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
cmp dword [0x4c2888], edi
je 0x401404
call fcn.00402c20
mov byte [esp + 0x13], 0
cmp dword [0x4c3860], edi
je 0x40141f
call fcn.00402ab0
test al, al
je 0x40141f
mov byte [esp + 0x13], 1
cmp esi, edi
jle 0x401645
cmp dword [ebp + 0xc], ebx
jne 0x401645
add dword [0x4c0e74], ebx
cmp byte [0x4c0e5e], 0
mov byte [esp + 0x1d], 1
jne 0x401461
mov ecx, dword [0x4c0d1c]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c0e5e], dl
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp + 8], 0
mov esi, eax
mov dword [esp + 0x48], esi
jle 0x40164f
cmp byte [esp + 0x1c], 0
jne 0x40164f
cmp byte [0x4c0e64], 0
jne 0x40165c
call fcn.00403190
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_GetMessageW]
cmp eax, 0xffffffff
je 0x40146b
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x4014d3
mov dword [0x4c38b0], eax
cmp dword [0x4c1678], 0
je 0x40150d
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x8c]
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.00402c90
add esp, 0x18
test al, al
jne 0x40146b
cmp dword [0x4c2f4c], 0
mov esi, dword [esp + 0x2c]
je 0x401b50
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401b50
cmp eax, dword [0x4c0d1c]
je 0x401b50
cmp esi, 0x414
je 0x401b50
cmp esi, 0x402
je 0x401b50
cmp esi, 0x100
jne 0x401aeb
mov esi, dword [esp + 0x30]
cmp esi, 0x22
je 0x40157b
cmp esi, 0x21
je 0x40157b
cmp esi, 9
je 0x40157b
cmp esi, 0x25
je 0x40157b
cmp esi, 0x27
jne 0x4018e4
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x4018e0
call fcn.0046b590
test eax, eax
je 0x4018e0
mov edi, eax
call fcn.004012e0
mov dword [esp + 0xc], eax
test eax, eax
je 0x4018e0
cmp byte [eax + 0x54], 0
je 0x4018e0
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push esi
call edi
lea ebx, [eax - 3]
mov eax, dword [esp + 0xc]
cmp ebx, dword [eax + 0xc]
jb 0x4015db
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4015db
push eax
call edi
lea ebx, [eax - 3]
mov eax, dword [esp + 0xc]
cmp ebx, dword [eax + 0xc]
jae 0x4018d8
mov edx, dword [eax + 0x14]
lea ecx, [ebx + ebx*4]
lea ebx, [edx + ecx*4]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4018e0
mov al, byte [ebx + 4]
cmp al, 0xf
je 0x4018e0
mov esi, dword [esp + 0x30]
xor edi, edi
cmp al, 0x13
jne 0x4019c9
mov edi, ebx
cmp esi, 0x25
je 0x401626
cmp esi, 0x27
jne 0x4019c9
mov edx, dword [esp + 0xc]
cmp esi, 0x27
sete al
push 0
movzx ecx, al
push 0
push ecx
push edx
mov eax, ebx
call fcn.0045e5d0
jmp 0x40146b
mov byte [esp + 0x1d], 0
jmp 0x401461
cmp byte [0x4c0e64], 0
je 0x4017f9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4017f9
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c2fa4]
jne 0x4017f9
cmp dword [0x4c0ea0], 0
je 0x4016db
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 0x4016cd
test dx, dx
je 0x4016c9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016cd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016a7
xor eax, eax
jmp 0x4016d2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x401730
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x4017f9
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.00481dd9
add esp, 8
test eax, eax
je 0x401730
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.00481dd9
add esp, 8
test eax, eax
jne 0x4017f9
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call esi
test eax, eax
jne 0x401775
push 1
call fcn.00403190
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea edx, [esp + 0x38]
push edx
call esi
jmp 0x401874
mov edi, dword [esp + 0x38]
push 0
call fcn.00403190
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea eax, [esp + 0x38]
push eax
call esi
push 1
test eax, eax
jne 0x4017b6
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
jmp 0x401874
mov edx, dword [esp + 0x3c]
sub edx, edi
test edx, edx
jle 0x4017d5
push 0x1ff
push 0
push 0
lea eax, [esp + 0x38]
push eax
call esi
jmp 0x401874
call fcn.00403190
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea ecx, [esp + 0x38]
push ecx
call esi
jmp 0x401874
cmp dword [0x4bd3c0], 0
je 0x401852
cmp dword [0x4c0e94], 0
jne 0x401852
mov eax, dword [0x4bd4c4]
cmp byte [eax + 0xe4], 0
jne 0x401849
cmp byte [eax + 0xe6], 0
jne 0x401849
cmp dword [eax + 0xd8], 0xffffffff
jle 0x401849
call ebx
mov edx, eax
mov eax, dword [0x4bd4c4]
sub edx, dword [eax + 0xd4]
cmp edx, dword [eax + 0xd8]
jb 0x401849
mov byte [eax + 0xe4], 1
movzx eax, byte [eax + 0xe4]
jmp 0x401854
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_PeekMessageW]
test eax, eax
jne 0x4014d3
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x48]
cmp ecx, 3
jbe 0x40188e
mov dword [0x4c38b0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4018ad
cmp byte [esp + 0x1f], 0
jne 0x4018ad
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x1f], 1
jmp 0x40146b
call ebx
cmp byte [esp + 0x5c], 0
jne 0x4028f4
mov edx, dword [esp + 0x6c]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x4028f4
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40146b
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x30]
cmp esi, 0x1b
je 0x40190d
cmp esi, 9
je 0x40190d
cmp esi, 0x41
jne 0x401a85
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a81
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x401a81
call fcn.0046b590
test eax, eax
je 0x401a81
mov edi, eax
call fcn.004012e0
mov dword [esp + 0xc], eax
test eax, eax
je 0x401a81
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, dword [esp + 0xc]
lea ebx, [eax - 3]
cmp ebx, dword [edi + 0xc]
jb 0x40196e
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x401965
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ebx, [eax - 3]
cmp ebx, dword [edi + 0xc]
jae 0x401a79
mov eax, dword [edi + 0x14]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a81
mov ecx, eax
cmp byte [ecx + 4], 0xc
jne 0x401a81
mov esi, dword [esp + 0x30]
cmp esi, 0x1b
je 0x401ac5
cmp esi, 0x41
je 0x401aa8
test byte [eax + 5], 0x80
je 0x401a85
mov edx, dword [eax]
push 0x49c0d0
push 1
push 0xc2
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40146b
cmp esi, 0x25
je 0x4018e4
cmp esi, 0x27
je 0x4018e4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4018e0
mov esi, dword [esp + 0x30]
cmp esi, 9
jne 0x401a17
cmp byte [ebx + 4], 0xc
jne 0x401a17
mov edx, dword [ebx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x4018e0
mov esi, dword [esp + 0x30]
test edi, edi
jne 0x401a3e
mov bl, byte [ebx + 6]
mov ecx, dword [esp + 0xc]
call fcn.0045e340
mov edi, eax
test edi, edi
jne 0x401a3e
xor bl, bl
call fcn.0045e340
mov edi, eax
test edi, edi
je 0x4018e4
cmp esi, 0x22
je 0x401a5e
cmp esi, 9
jne 0x401a5a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a5e
xor al, al
jmp 0x401a63
mov eax, 1
mov edx, dword [esp + 0xc]
push 1
push 1
push eax
push edx
mov eax, edi
call fcn.0045e5d0
jmp 0x40146b
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x30]
mov eax, dword [0x4c2f50]
test eax, eax
je 0x401aeb
cmp esi, 0xd
jne 0x401ad1
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40146b
test byte [eax + 5], 2
jne 0x401a85
mov eax, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40146b
mov eax, edi
call fcn.0045aec0
jmp 0x40146b
cmp esi, 0x1b
jne 0x401aeb
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40146b
mov ecx, dword [0x4bd4c4]
xor edi, edi
mov esi, 0x4c1498
mov eax, dword [esi]
test eax, eax
je 0x401b41
cmp dword [eax], 0
je 0x401b38
mov byte [ecx + 0xe0], 1
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xdc], edx
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + 0x28]
push eax
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402875
mov ecx, dword [0x4bd4c4]
mov byte [ecx + 0xe0], al
inc edi
cmp dword [0x4c2f4c], edi
je 0x401b4c
add esi, 4
cmp esi, 0x4c1624
jl 0x401af8
mov esi, dword [esp + 0x2c]
cmp esi, 0x312
ja 0x401cb7
je case.0x401ccd.1026
cmp esi, 0x100
ja 0x401bd2
je 0x401ba3
cmp esi, 0x12
je 0x401b8e
cmp esi, 0x4b
jne case.0x401ccd.1027
mov dword [0x4c0e54], 0
mov byte [esp + 0x1c], 1
jmp 0x40146b
push 0
push 0
push 6
mov ecx, 0x4c3000
call fcn.004151b0
jmp 0x40146b
mov ecx, dword [esp + 0x28]
cmp ecx, dword [0x4c0d20]
jne case.0x401ccd.1027
cmp dword [esp + 0x30], 0x1b
jne case.0x401ccd.1027
mov edx, dword [0x4c0d1c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40146b
cmp esi, 0x113
jne case.0x401ccd.1027
cmp dword [esp + 0x34], 0
jne case.0x401ccd.1027
mov eax, dword [0x4c0d1c]
cmp dword [esp + 0x28], eax
jne case.0x401ccd.1027
cmp dword [0x4c2888], 0
je 0x401c06
call fcn.00402c20
cmp dword [0x4c3860], 0
je 0x401c1d
call fcn.00402ab0
test al, al
je 0x401c1d
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x40146b
cmp dword [ebp + 8], 1
jl 0x40146b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a70
add esp, 8
test eax, eax
je 0x40146b
cmp byte [esp + 0x1b], 0
je 0x401c5c
mov byte [0x4c0e64], 0
cmp byte [esp + 0x1d], 0
je 0x401cac
dec dword [0x4c0e74]
cmp dword [ebp + 8], 0
jle 0x401cac
cmp dword [0x4c0e74], 0
jne 0x401cac
cmp dword [0x4c3860], 0
jne 0x401cac
cmp dword [0x4c2888], 0
jne 0x401cac
cmp byte [0x4c0e5e], 0
je 0x401cac
mov eax, dword [0x4c0d1c]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401cac
mov byte [0x4c0e5e], 0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x400]
cmp eax, 0x15
ja case.0x401ccd.1027
movzx eax, byte [eax + 0x40298c]
jmp dword [eax*4 + 0x402980]
mov eax, dword [esp + 0x28]
test eax, eax
je case.0x401ccd.1026
cmp eax, dword [0x4c0d1c]
jne case.0x401ccd.1027
xor ebx, ebx
lea eax, [esi - 0x401]
mov dword [esp + 0x48], ebx
cmp eax, 0x14
ja case.0x401d04.1027
movzx ecx, byte [eax + 0x4029b8]
jmp dword [ecx*4 + 0x4029a4]
mov edi, dword [esp + 0x28]
call fcn.004012e0
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je case.0x401ccd.1027
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x78], edx
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x70], eax
cmp edx, 8
jne 0x401d5c
mov dword [esp + 0x70], 0x2af8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
cmp eax, dword [edi + 0xc]
jae 0x401d70
mov ecx, dword [edi + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
jmp 0x401d74
mov dword [esp + 0x14], ebx
lea eax, [edx - 5]
mov dword [esp + 0x60], ebx
mov byte [esp + 0x1e], bl
cmp eax, 4
ja case.default.0x401d88
jmp dword [eax*4 + 0x4029d0]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40146b
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
mov edx, eax
mov eax, dword [edx + 4]
mov al, byte [eax]
add ecx, 0x32
mov dword [esp + 0x60], ecx
jmp 0x40207d
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40146b
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
add edx, 0x30
mov dword [esp + 0x60], edx
mov edx, eax
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x40207d
mov eax, dword [edi + 0x20]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40146b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x20]
add eax, 0x31
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x40207d
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40146b
mov edi, dword [esp + 0x20]
mov edx, eax
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x40207d
mov eax, dword [edi + 0x28]
mov ebx, dword [edi + 0x6c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x401e5d
test ebx, ebx
je 0x40146b
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x401ebd
test ebx, ebx
je 0x40146b
push ebx
jmp 0x402250
cmp dword [esp + 0x14], ebx
je 0x40146b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
test ecx, ecx
jne 0x401e9c
test byte [eax + 5], 1
je 0x40146b
mov eax, dword [esp + 0xc]
call fcn.0045ae60
jmp 0x40146b
test byte [eax + 5], 4
jne 0x40146b
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
mov al, byte [eax]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x1e], 1
jmp 0x40207d
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
mov esi, dword [esp + 0x2c]
mov al, byte [eax]
mov edi, dword [esp + 0x20]
jmp 0x40207d
mov edx, dword [esp + 0x34]
mov eax, 0x4c3000
call fcn.00401320
mov dword [esp + 0x68], eax
test eax, eax
je 0x40146b
mov ecx, eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x40146b
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x20]
jmp 0x40207b
mov eax, dword [esp + 0x30]
cmp eax, dword [0x4c2890]
jae 0x40146b
mov ecx, dword [0x4c288c]
mov ebx, dword [ecx + eax*4]
mov dl, byte [ebx + 0x24]
mov dword [esp + 0x50], ebx
test dl, dl
je 0x401fa3
mov eax, dword [ebx]
test eax, eax
je 0x401f34
mov eax, dword [eax]
jmp 0x401f39
mov eax, 0x4a5c64
mov ecx, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x10]
mov bl, dl
call fcn.004091b0
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x40146b
mov ecx, dword [esp + 0x50]
mov al, byte [ecx + 0x24]
cmp al, 1
je 0x401f71
cmp al, 3
je 0x401f71
mov dword [esp + 0x54], 0
mov ebx, ecx
mov edx, dword [esp + 0x34]
push edx
call fcn.0040c0e0
mov eax, dword [ebx + 8]
cmp word [eax], 0
jne 0x40146b
mov eax, dword [esp + 0x50]
cmp byte [eax + 0x2e], 0
je 0x401fad
movsx cx, byte [esp + 0x34]
mov word [0x4c3878], cx
jmp 0x401fb6
mov dword [esp + 0x54], 0
jmp 0x401f73
xor edx, edx
mov word [0x4c3878], dx
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
jmp 0x40207d
mov edx, dword [0x4c3848]
mov eax, dword [edx + 4]
mov al, byte [eax]
mov edi, dword [esp + 0x20]
jmp 0x40207d
mov ecx, dword [esp + 0x30]
mov edx, dword [0x4be5dc]
mov eax, ecx
and eax, 0x3fff
cmp ax, word [edx]
jae 0x40146b
movzx eax, ax
mov edx, dword [eax*4 + 0x4c18d8]
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x58], edx
test ax, ax
je 0x402047
mov ecx, edx
mov edi, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x20], edi
test ax, ax
je 0x402043
jmp 0x402030
mov edx, dword [edi + 0x14]
add eax, 0xffff
mov dword [esp + 0x20], edx
mov edi, edx
test ax, ax
jne 0x402030
test edi, edi
jne 0x402067
mov eax, dword [esp + 0x58]
push eax
lea eax, [esp + 0x58]
call fcn.00409b40
mov dword [esp + 0x20], eax
test eax, eax
je 0x40146b
mov esi, dword [esp + 0x2c]
mov edi, eax
mov al, byte [edi + 0x1e]
cmp al, 1
je 0x402076
cmp al, 3
je 0x402076
mov dword [esp + 0x54], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov al, byte [edx]
mov ecx, dword [0x4c0e78]
mov edx, dword [0x4bd3cc]
mov byte [esp + 0x64], al
cmp ecx, edx
jl 0x4020d7
add edx, 2
cmp ecx, edx
jge 0x4020b8
cmp al, 0xd8
je 0x4020d7
cmp al, 0xc4
je 0x4020d7
cmp al, 0xd2
je 0x4020d7
cmp al, 0xd3
je 0x4020d7
cmp al, 0xce
je 0x4020d7
cmp al, 0xcf
je 0x4020d7
cmp al, 0xd0
je 0x4020d7
cmp al, 0xd1
je 0x4020d7
test ebx, ebx
je 0x40146b
push ebx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x6c], 0
jmp 0x40146b
lea eax, [esi - 0x401]
cmp eax, 0x14
ja case.0x4020ed.1027
movzx ecx, byte [eax + 0x4029f8]
jmp dword [ecx*4 + 0x4029e4]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x402109
cmp byte [eax], 0
jne 0x40146b
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x402235
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x18]
cmp eax, 0x63
jae 0x4021c3
mov eax, dword [eax*4 + 0x4c1498]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x402235
cmp dword [esp + 0x28], eax
je 0x402235
mov eax, dword [0x4c0d1c]
cmp dword [esp + 0x28], eax
je 0x402235
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x402893
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c2fa4]
jne 0x402893
push 0x20
lea eax, [esp + 0xb4]
push eax
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 0x402832
test dx, dx
je 0x4021bc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402832
add eax, 4
add ecx, 4
test dx, dx
jne 0x402192
xor eax, eax
jmp 0x402837
mov dword [esp + 0xc], 0
jmp 0x402235
mov ecx, dword [esp + 0x50]
mov ebx, dword [ecx + 0x14]
jmp 0x402235
cmp byte [0x4c3844], 0
jne 0x40146b
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x402235
mov dl, byte [edi + 0x1f]
cmp dl, byte [edi + 0x20]
jb 0x402232
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
cmp al, 0xd8
je 0x402232
cmp al, 0xc4
je 0x402232
cmp al, 0xd2
je 0x402232
cmp al, 0xd3
je 0x402232
cmp al, 0xce
je 0x402232
cmp al, 0xcf
je 0x402232
cmp al, 0xd0
je 0x402232
cmp al, 0xd1
je 0x402232
cmp byte [edi + 0x22], 0
je 0x402224
mov byte [edi + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 4], eax
jmp 0x40146b
mov ebx, dword [edi + 0x18]
mov edx, dword [0x4bd4c4]
cmp ebx, dword [edx + 0x2c]
jge 0x402266
cmp dword [esp + 0x48], 0
je 0x40146b
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x6c], 0
jmp 0x40146b
mov byte [esp + 0x13], 1
cmp esi, 0x402
je 0x4022d9
cmp esi, 0x413
jbe 0x402287
cmp esi, 0x415
jbe 0x40231c
mov edx, dword [0x4c3838]
mov eax, dword [0x4c3870]
mov dword [0x4c383c], edx
mov dword [0x4c3874], eax
cmp esi, 0x401
jne 0x4022bf
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [0x4c3838], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c3870], eax
jmp 0x40231c
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
mov dword [0x4c3838], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c3870], eax
jmp 0x40231c
mov esi, dword [esp + 0x68]
mov eax, dword [esi]
push 0x104
push eax
push 0x4c3424
call fcn.00485434
xor ecx, ecx
mov word [0x4c362c], cx
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
add esp, 0xc
push 0x104
push eax
push 0x4c362e
call fcn.00485434
add esp, 0xc
xor ecx, ecx
mov word [0x4c3836], cx
mov ecx, dword [0x4c1688]
mov esi, 1
push esi
call fcn.00401240
push 0x7f
push eax
lea edx, [esp + 0xf8]
push edx
call fcn.00485434
mov ecx, dword [esp + 0x70]
add esp, 0xc
xor eax, eax
push ecx
push eax
mov word [esp + 0x1f6], ax
push ebx
mov al, 1
call fcn.00403050
mov ebx, dword [0x4bd4c4]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c38b4], eax
mov dword [0x4c38b0], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x40238a.1027
movzx edx, byte [eax + 0x402a24]
jmp dword [edx*4 + 0x402a10]
mov ecx, dword [esp + 0x44]
xor eax, eax
mov word [esp + 0x90], ax
lea eax, [ecx - 5]
cmp eax, 4
ja case.default.0x4023ab
jmp dword [eax*4 + 0x402a3c]
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x24], ecx
lea eax, [ebx + 0x3c]
sete cl
mov dword [esp + 0x24], 0
lea ecx, [ecx + ecx + 1]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
test esi, esi
je 0x40247c
mov edi, 1
cmp dword [ebx + 0x34], edi
jne 0x4023f6
push eax
call fcn.0045e730
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402464
sub eax, edi
je 0x402457
sub eax, edi
jne 0x40247c
cmp dword [ebx + 0x34], edi
jne 0x40241f
mov edx, dword [esi]
push eax
push 9
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402478
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x88], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
push 0
push 0x1111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402478
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
push 0x100c
push eax
jmp 0x402470
mov ecx, dword [esi]
push 0
push 0
push 0x19f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
add eax, edi
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
lea esi, [ebx + 0x3c]
call fcn.004682b0
mov ecx, dword [esp + 0x44]
jmp 0x402611
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x34], edx
mov eax, dword [esp + 0x3c]
lea esi, [ebx + 0x3c]
mov dword [esi], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [edi]
call fcn.004682b0
mov edx, dword [edi]
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffffef
push eax
mov eax, dword [edi]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x44]
jmp 0x402611
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x34], esi
cmp ecx, 8
jne 0x40261a
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x3c], ecx
mov eax, dword [esp + 0x24]
push 0x18
push 0
push eax
mov eax, dword [0x4c1688]
call fcn.004010e0
mov ecx, dword [edi]
mov dword [ebx + 0xc0], ecx
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x44], edx
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x70]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x38], ecx
test eax, eax
je 0x402641
mov byte [eax], 1
jmp 0x402650
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
cmp al, 0xa
je 0x40256f
cmp al, 0x15
jne 0x40260a
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0xc]
lea esi, [ebx + 0x3c]
mov dword [esi], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [edi]
call fcn.004682b0
mov ecx, dword [esp + 0x44]
jmp 0x40260e
cmp cl, 0x49
jne 0x40260a
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x402596
mov edx, 0x53
mov word [esp + 0x90], dx
jmp 0x4025ab
test ecx, 0x200
je 0x4025b2
mov eax, 0x73
mov word [esp + 0x90], ax
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x4025c1
mov edx, 0x46
jmp 0x4025ce
test ecx, 0x800
je 0x4025d4
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x4025e6
mov ecx, 0x43
mov word [eax], cx
jmp 0x4025f6
test ecx, 0x2000
je 0x4025f9
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov dword [esp + 0x44], 0x49
mov word [eax], cx
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x34], ecx
cmp ecx, 8
je 0x4024ef
cmp ecx, 5
je 0x4024ef
mov ecx, dword [0x4c1688]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x9c]
push edx
call fcn.004698a0
jmp 0x402502
cmp byte [esp + 0x1e], 0
je 0x402650
mov eax, dword [esp + 0x14]
or byte [eax + 5], 4
mov ecx, dword [esp + 0x4c]
call fcn.004012a0
mov edx, dword [esp + 0x78]
mov esi, dword [edx*4 + 0x4c1498]
xor ebx, ebx
mov dword [esp + 0xc], esi
cmp esi, ebx
je case.0x402696.9
cmp edi, dword [esi + 0xc]
jae 0x402686
mov ecx, dword [esi + 0x14]
lea eax, [edi + edi*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x14], edx
jmp 0x40268a
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x44]
add eax, 0xfffffffb
cmp eax, 4
ja case.default.0x402696
jmp dword [eax*4 + 0x402a50]
mov byte [esi + 0x32], bl
jmp case.0x402696.9
mov byte [esi + 0x30], bl
jmp case.0x402696.9
mov byte [esi + 0x31], bl
jmp case.0x402696.9
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x4026c6
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [esi + 0x6c], ebx
mov eax, dword [esi]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi]
or eax, 0x10
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x402696.9
cmp dword [esp + 0x14], ebx
je case.0x402696.9
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
jmp case.0x402696.9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402718
mov edx, dword [eax]
mov dword [ebx + 0xc0], edx
mov dword [ebx + 0x34], esi
mov eax, dword [eax + 8]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc]
call fcn.004012a0
jmp case.0x402696.9
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [ebx + 0xc0], ecx
call fcn.0040c050
jmp case.0x402696.9
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x40276c
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
jne 0x402768
push 0xf
call edi
test eax, eax
jne 0x402768
mov eax, 2
jmp 0x40276e
mov eax, esi
jmp 0x40276e
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c1688]
call fcn.004010e0
mov ecx, dword [0x4c3848]
mov byte [0x4c3844], 1
call fcn.004012a0
mov byte [0x4c3844], 0
jmp case.0x402696.9
mov edx, dword [esp + 0x58]
mov al, byte [edx + 0x12]
cmp al, 0x9c
jb 0x4027b1
cmp al, 0x9f
ja 0x4027b1
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x38], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [ebx + 0xc0], ecx
push edx
mov ebx, edi
call fcn.00409e40
mov ecx, dword [0x4c1688]
dec dword [0x4c0e78]
sub dword [0x4bd4c4], 0xf8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0xfc]
push eax
call fcn.004698a0
push 0
mov eax, 0x4c3000
call fcn.00414e70
cmp dword [ebp + 0xc], 0
je 0x40146b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a70
add esp, 8
test eax, eax
je 0x40146b
mov byte [esp + 0x1c], 1
mov byte [esp + 0x5c], 1
jmp 0x40146b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402893
mov eax, dword [0x4bd4c4]
lea edx, [esp + 0x28]
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x2c]
push edx
push esi
mov dword [eax + 0xdc], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x402886
cmp dword [0x4c0ea0], 0
je 0x402875
push 0x4c1690
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4bd4c4]
mov byte [eax + 0xe0], 0
jmp 0x40146b
mov ecx, dword [0x4bd4c4]
mov byte [ecx + 0xe0], 0
mov eax, dword [0x4c0d30]
test eax, eax
je 0x4028b6
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [0x4c0d1c]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40146b
mov eax, dword [0x4bd4c4]
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
mov dword [eax + 0xdc], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x4bd4c4]
mov byte [ecx + 0xe0], 0
jmp 0x40146b
cmp esi, 0xffffffff
jle 0x402912
mov dword [0x4c38a0], 0
mov dword [0x4c38a4], 0
mov dword [0x4c38b0], eax
cmp byte [esp + 0x1b], 0
mov dword [0x4c38b4], eax
je 0x402925
mov byte [0x4c0e64], 0
cmp byte [esp + 0x1d], 0
je 0x401cac
dec dword [0x4c0e74]
test esi, esi
jle 0x401cac
cmp dword [0x4c0e74], 0
jne 0x401cac
cmp dword [0x4c3860], 0
jne 0x401cac
cmp dword [0x4c2888], 0
jne 0x401cac
cmp byte [0x4c0e5e], 0
je 0x401cac
mov edx, dword [0x4c0d1c]
push 9
push edx
jmp 0x401c9b