Function at 0x401360
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 0x401395
cmp byte [0x4c0fcc], 0
mov dword [ebp + 0xc], ebx
jne 0x401395
mov byte [0x4c0fcc], bl
mov byte [esp + 0x1b], bl
cmp dword [0x4c3164], edi
je 0x4013c9
cmp dword [0x4c3154], edi
je 0x4013b7
mov eax, dword [0x4c314c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c3154], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c3164], edi
mov dword [0x4c314c], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x4013e9
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x6c], edi
jmp 0x401407
cmp esi, 5
setle al
mov byte [esp + 0x5c], al
test al, al
je 0x4013fd
mov dword [esp + 0x6c], edi
jmp 0x401407
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
cmp dword [0x4c29f0], edi
je 0x401414
call fcn.00402c40
mov byte [esp + 0x13], 0
cmp dword [0x4c3bd8], edi
je 0x40142f
call fcn.00402ac0
test al, al
je 0x40142f
mov byte [esp + 0x13], 1
cmp esi, edi
jle 0x401655
cmp dword [ebp + 0xc], ebx
jne 0x401655
add dword [0x4c0fdc], ebx
cmp byte [0x4c0fc6], 0
mov byte [esp + 0x1d], 1
jne 0x401471
mov ecx, dword [0x4c0e74]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c0fc6], 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 0x40165f
cmp byte [esp + 0x1c], 0
jne 0x40165f
cmp byte [0x4c0fcc], 0
jne 0x40166c
call fcn.004031b0
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 0x40147b
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x4014e3
mov dword [0x4c3c28], eax
cmp dword [0x4c17e0], 0
je 0x40151d
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.00402cb0
add esp, 0x18
test al, al
jne 0x40147b
cmp dword [0x4c30b4], 0
mov esi, dword [esp + 0x2c]
je 0x401b60
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401b60
cmp eax, dword [0x4c0e74]
je 0x401b60
cmp esi, 0x414
je 0x401b60
cmp esi, 0x402
je 0x401b60
cmp esi, 0x100
jne 0x401afb
mov esi, dword [esp + 0x30]
cmp esi, 0x22
je 0x40158b
cmp esi, 0x21
je 0x40158b
cmp esi, 9
je 0x40158b
cmp esi, 0x25
je 0x40158b
cmp esi, 0x27
jne 0x4018f4
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x4018f0
call fcn.0046faf0
test eax, eax
je 0x4018f0
mov edi, eax
call fcn.004012f0
mov dword [esp + 0xc], eax
test eax, eax
je 0x4018f0
cmp byte [eax + 0x54], 0
je 0x4018f0
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 0x4015eb
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4015eb
push eax
call edi
lea ebx, [eax - 3]
mov eax, dword [esp + 0xc]
cmp ebx, dword [eax + 0xc]
jae 0x4018e8
mov edx, dword [eax + 0x14]
lea ecx, [ebx + ebx*4]
lea ebx, [edx + ecx*4]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4018f0
mov al, byte [ebx + 4]
cmp al, 0xf
je 0x4018f0
mov esi, dword [esp + 0x30]
xor edi, edi
cmp al, 0x13
jne 0x4019d9
mov edi, ebx
cmp esi, 0x25
je 0x401636
cmp esi, 0x27
jne 0x4019d9
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.00461930
jmp 0x40147b
mov byte [esp + 0x1d], 0
jmp 0x401471
cmp byte [0x4c0fcc], 0
je 0x401809
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401809
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c310c]
jne 0x401809
cmp dword [0x4c1008], 0
je 0x4016eb
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 0x4016dd
test dx, dx
je 0x4016d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016b7
xor eax, eax
jmp 0x4016e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x401740
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401809
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.00486339
add esp, 8
test eax, eax
je 0x401740
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.00486339
add esp, 8
test eax, eax
jne 0x401809
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 0x401785
push 1
call fcn.004031b0
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 0x401884
mov edi, dword [esp + 0x38]
push 0
call fcn.004031b0
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 0x4017c6
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
jmp 0x401884
mov edx, dword [esp + 0x3c]
sub edx, edi
test edx, edx
jle 0x4017e5
push 0x1ff
push 0
push 0
lea eax, [esp + 0x38]
push eax
call esi
jmp 0x401884
call fcn.004031b0
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 0x401884
cmp dword [0x4bd3e4], 0
je 0x401862
cmp dword [0x4c0ffc], 0
jne 0x401862
mov eax, dword [0x4bd41c]
cmp byte [eax + 0xe4], 0
jne 0x401859
cmp byte [eax + 0xe6], 0
jne 0x401859
cmp dword [eax + 0xd8], 0xffffffff
jle 0x401859
call ebx
mov edx, eax
mov eax, dword [0x4bd41c]
sub edx, dword [eax + 0xd4]
cmp edx, dword [eax + 0xd8]
jb 0x401859
mov byte [eax + 0xe4], 1
movzx eax, byte [eax + 0xe4]
jmp 0x401864
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 0x4014e3
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x48]
cmp ecx, 3
jbe 0x40189e
mov dword [0x4c3c28], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4018bd
cmp byte [esp + 0x1f], 0
jne 0x4018bd
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x1f], 1
jmp 0x40147b
call ebx
cmp byte [esp + 0x5c], 0
jne 0x402906
mov edx, dword [esp + 0x6c]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x402906
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40147b
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x30]
cmp esi, 0x1b
je 0x40191d
cmp esi, 9
je 0x40191d
cmp esi, 0x41
jne 0x401a95
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a91
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x401a91
call fcn.0046faf0
test eax, eax
je 0x401a91
mov edi, eax
call fcn.004012f0
mov dword [esp + 0xc], eax
test eax, eax
je 0x401a91
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, dword [esp + 0xc]
lea ebx, [eax - 3]
cmp ebx, dword [edi + 0xc]
jb 0x40197e
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x401975
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ebx, [eax - 3]
cmp ebx, dword [edi + 0xc]
jae 0x401a89
mov eax, dword [edi + 0x14]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a91
mov ecx, eax
cmp byte [ecx + 4], 0xc
jne 0x401a91
mov esi, dword [esp + 0x30]
cmp esi, 0x1b
je 0x401ad5
cmp esi, 0x41
je 0x401ab8
test byte [eax + 5], 0x80
je 0x401a95
mov edx, dword [eax]
push 0x49b868
push 1
push 0xc2
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40147b
cmp esi, 0x25
je 0x4018f4
cmp esi, 0x27
je 0x4018f4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4018f0
mov esi, dword [esp + 0x30]
cmp esi, 9
jne 0x401a27
cmp byte [ebx + 4], 0xc
jne 0x401a27
mov edx, dword [ebx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x4018f0
mov esi, dword [esp + 0x30]
test edi, edi
jne 0x401a4e
mov bl, byte [ebx + 6]
mov ecx, dword [esp + 0xc]
call fcn.004616a0
mov edi, eax
test edi, edi
jne 0x401a4e
xor bl, bl
call fcn.004616a0
mov edi, eax
test edi, edi
je 0x4018f4
cmp esi, 0x22
je 0x401a6e
cmp esi, 9
jne 0x401a6a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a6e
xor al, al
jmp 0x401a73
mov eax, 1
mov edx, dword [esp + 0xc]
push 1
push 1
push eax
push edx
mov eax, edi
call fcn.00461930
jmp 0x40147b
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x30]
mov eax, dword [0x4c30b8]
test eax, eax
je 0x401afb
cmp esi, 0xd
jne 0x401ae1
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40147b
test byte [eax + 5], 2
jne 0x401a95
mov eax, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40147b
mov eax, edi
call fcn.0045e330
jmp 0x40147b
cmp esi, 0x1b
jne 0x401afb
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40147b
mov ecx, dword [0x4bd41c]
xor edi, edi
mov esi, 0x4c1600
mov eax, dword [esi]
test eax, eax
je 0x401b51
cmp dword [eax], 0
je 0x401b48
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 0x402887
mov ecx, dword [0x4bd41c]
mov byte [ecx + 0xe0], al
inc edi
cmp dword [0x4c30b4], edi
je 0x401b5c
add esi, 4
cmp esi, 0x4c178c
jl 0x401b08
mov esi, dword [esp + 0x2c]
cmp esi, 0x312
ja 0x401cc7
je case.0x401cdd.1026
cmp esi, 0x100
ja 0x401be2
je 0x401bb3
cmp esi, 0x12
je 0x401b9e
cmp esi, 0x4b
jne case.0x401cdd.1027
mov dword [0x4c0fac], 0
mov byte [esp + 0x1c], 1
jmp 0x40147b
push 0
push 0
push 6
mov ecx, 0x4c3168
call fcn.00415480
jmp 0x40147b
mov ecx, dword [esp + 0x28]
cmp ecx, dword [0x4c0e78]
jne case.0x401cdd.1027
cmp dword [esp + 0x30], 0x1b
jne case.0x401cdd.1027
mov edx, dword [0x4c0e74]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40147b
cmp esi, 0x113
jne case.0x401cdd.1027
cmp dword [esp + 0x34], 0
jne case.0x401cdd.1027
mov eax, dword [0x4c0e74]
cmp dword [esp + 0x28], eax
jne case.0x401cdd.1027
cmp dword [0x4c29f0], 0
je 0x401c16
call fcn.00402c40
cmp dword [0x4c3bd8], 0
je 0x401c2d
call fcn.00402ac0
test al, al
je 0x401c2d
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x40147b
cmp dword [ebp + 8], 1
jl 0x40147b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a80
add esp, 8
test eax, eax
je 0x40147b
cmp byte [esp + 0x1b], 0
je 0x401c6c
mov byte [0x4c0fcc], 0
cmp byte [esp + 0x1d], 0
je 0x401cbc
dec dword [0x4c0fdc]
cmp dword [ebp + 8], 0
jle 0x401cbc
cmp dword [0x4c0fdc], 0
jne 0x401cbc
cmp dword [0x4c3bd8], 0
jne 0x401cbc
cmp dword [0x4c29f0], 0
jne 0x401cbc
cmp byte [0x4c0fc6], 0
je 0x401cbc
mov eax, dword [0x4c0e74]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401cbc
mov byte [0x4c0fc6], 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.0x401cdd.1027
movzx eax, byte [eax + 0x4029a0]
jmp dword [eax*4 + 0x402994]
mov eax, dword [esp + 0x28]
test eax, eax
je case.0x401cdd.1026
cmp eax, dword [0x4c0e74]
jne case.0x401cdd.1027
xor ebx, ebx
lea eax, [esi - 0x401]
mov dword [esp + 0x48], ebx
cmp eax, 0x14
ja case.0x401d14.1027
movzx ecx, byte [eax + 0x4029cc]
jmp dword [ecx*4 + 0x4029b8]
mov edi, dword [esp + 0x28]
call fcn.004012f0
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je case.0x401cdd.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 0x401d6c
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 0x401d80
mov ecx, dword [edi + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
jmp 0x401d84
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.0x401d98
jmp dword [eax*4 + 0x4029e4]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40147b
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 0x40208d
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40147b
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 0x40208d
mov eax, dword [edi + 0x20]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40147b
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 0x40208d
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x40147b
mov edi, dword [esp + 0x20]
mov edx, eax
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x40208d
mov eax, dword [edi + 0x28]
mov ebx, dword [edi + 0x6c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x401e6d
test ebx, ebx
je 0x40147b
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x401ecd
test ebx, ebx
je 0x40147b
push ebx
jmp 0x402260
cmp dword [esp + 0x14], ebx
je 0x40147b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
test ecx, ecx
jne 0x401eac
test byte [eax + 5], 1
je 0x40147b
mov eax, dword [esp + 0xc]
call fcn.0045e2d0
jmp 0x40147b
test byte [eax + 5], 4
jne 0x40147b
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 0x40208d
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 0x40208d
mov edx, dword [esp + 0x34]
mov eax, 0x4c3168
call fcn.00401330
mov dword [esp + 0x68], eax
test eax, eax
je 0x40147b
mov ecx, eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x40147b
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x20]
jmp 0x40208b
mov eax, dword [esp + 0x30]
cmp eax, dword [0x4c29f8]
jae 0x40147b
mov ecx, dword [0x4c29f4]
mov ebx, dword [ecx + eax*4]
mov dl, byte [ebx + 0x24]
mov dword [esp + 0x50], ebx
test dl, dl
je 0x401fb3
mov eax, dword [ebx]
test eax, eax
je 0x401f44
mov eax, dword [eax]
jmp 0x401f49
mov eax, 0x4a596c
mov ecx, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x10]
mov bl, dl
call fcn.00409260
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x40147b
mov ecx, dword [esp + 0x50]
mov al, byte [ecx + 0x24]
cmp al, 1
je 0x401f81
cmp al, 3
je 0x401f81
mov dword [esp + 0x54], 0
mov ebx, ecx
mov edx, dword [esp + 0x34]
push edx
call fcn.0040c1e0
mov eax, dword [ebx + 8]
cmp word [eax], 0
jne 0x40147b
mov eax, dword [esp + 0x50]
cmp byte [eax + 0x2e], 0
je 0x401fbd
movsx cx, byte [esp + 0x34]
mov word [0x4c3bf0], cx
jmp 0x401fc6
mov dword [esp + 0x54], 0
jmp 0x401f83
xor edx, edx
mov word [0x4c3bf0], 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 0x40208d
mov edx, dword [0x4c3bc0]
mov eax, dword [edx + 4]
mov al, byte [eax]
mov edi, dword [esp + 0x20]
jmp 0x40208d
mov ecx, dword [esp + 0x30]
mov edx, dword [0x4be600]
mov eax, ecx
and eax, 0x3fff
cmp ax, word [edx]
jae 0x40147b
movzx eax, ax
mov edx, dword [eax*4 + 0x4c1a40]
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x58], edx
test ax, ax
je 0x402057
mov ecx, edx
mov edi, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x20], edi
test ax, ax
je 0x402053
jmp 0x402040
mov edx, dword [edi + 0x14]
add eax, 0xffff
mov dword [esp + 0x20], edx
mov edi, edx
test ax, ax
jne 0x402040
test edi, edi
jne 0x402077
mov eax, dword [esp + 0x58]
push eax
lea eax, [esp + 0x58]
call fcn.00409c00
mov dword [esp + 0x20], eax
test eax, eax
je 0x40147b
mov esi, dword [esp + 0x2c]
mov edi, eax
mov al, byte [edi + 0x1e]
cmp al, 1
je 0x402086
cmp al, 3
je 0x402086
mov dword [esp + 0x54], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov al, byte [edx]
mov ecx, dword [0x4c0fe0]
mov edx, dword [0x4bd3f0]
mov byte [esp + 0x64], al
cmp ecx, edx
jl 0x4020e7
add edx, 2
cmp ecx, edx
jge 0x4020c8
cmp al, 0xd8
je 0x4020e7
cmp al, 0xc4
je 0x4020e7
cmp al, 0xd2
je 0x4020e7
cmp al, 0xd3
je 0x4020e7
cmp al, 0xce
je 0x4020e7
cmp al, 0xcf
je 0x4020e7
cmp al, 0xd0
je 0x4020e7
cmp al, 0xd1
je 0x4020e7
test ebx, ebx
je 0x40147b
push ebx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x6c], 0
jmp 0x40147b
lea eax, [esi - 0x401]
cmp eax, 0x14
ja case.0x4020fd.1027
movzx ecx, byte [eax + 0x402a0c]
jmp dword [ecx*4 + 0x4029f8]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x402119
cmp byte [eax], 0
jne 0x40147b
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x402245
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x18]
cmp eax, 0x63
jae 0x4021d3
mov eax, dword [eax*4 + 0x4c1600]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x402245
cmp dword [esp + 0x28], eax
je 0x402245
mov eax, dword [0x4c0e74]
cmp dword [esp + 0x28], eax
je 0x402245
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4028a5
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c310c]
jne 0x4028a5
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 0x402844
test dx, dx
je 0x4021cc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402844
add eax, 4
add ecx, 4
test dx, dx
jne 0x4021a2
xor eax, eax
jmp 0x402849
mov dword [esp + 0xc], 0
jmp 0x402245
mov ecx, dword [esp + 0x50]
mov ebx, dword [ecx + 0x14]
jmp 0x402245
cmp byte [0x4c3bbc], 0
jne 0x40147b
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x402245
mov dl, byte [edi + 0x1f]
cmp dl, byte [edi + 0x20]
jb 0x402242
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
cmp al, 0xd8
je 0x402242
cmp al, 0xc4
je 0x402242
cmp al, 0xd2
je 0x402242
cmp al, 0xd3
je 0x402242
cmp al, 0xce
je 0x402242
cmp al, 0xcf
je 0x402242
cmp al, 0xd0
je 0x402242
cmp al, 0xd1
je 0x402242
cmp byte [edi + 0x22], 0
je 0x402234
mov byte [edi + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 4], eax
jmp 0x40147b
mov ebx, dword [edi + 0x18]
mov edx, dword [0x4bd41c]
cmp ebx, dword [edx + 0x2c]
jge 0x402276
cmp dword [esp + 0x48], 0
je 0x40147b
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 0x40147b
mov byte [esp + 0x13], 1
cmp esi, 0x402
je 0x4022e9
cmp esi, 0x413
jbe 0x402297
cmp esi, 0x415
jbe 0x40232c
mov edx, dword [0x4c3bb0]
mov eax, dword [0x4c3be8]
mov dword [0x4c3bb4], edx
mov dword [0x4c3bec], eax
cmp esi, 0x401
jne 0x4022cf
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [0x4c3bb0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c3be8], eax
jmp 0x40232c
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
mov dword [0x4c3bb0], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c3be8], eax
jmp 0x40232c
mov esi, dword [esp + 0x68]
mov eax, dword [esi]
push 0x104
push eax
push 0x4c379c
call fcn.00488d24
xor ecx, ecx
mov word [0x4c39a4], cx
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
add esp, 0xc
push 0x104
push eax
push 0x4c39a6
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
mov word [0x4c3bae], cx
mov ecx, dword [0x4c17f0]
push 0
mov esi, 1
push esi
call fcn.00401240
push 0x7f
push eax
lea edx, [esp + 0xf8]
push edx
call fcn.00488d24
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.00403070
mov ebx, dword [0x4bd41c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c3c2c], eax
mov dword [0x4c3c28], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x40239c.1027
movzx edx, byte [eax + 0x402a38]
jmp dword [edx*4 + 0x402a24]
mov ecx, dword [esp + 0x44]
xor eax, eax
mov word [esp + 0x90], ax
lea eax, [ecx - 5]
cmp eax, 4
ja case.default.0x4023bd
jmp dword [eax*4 + 0x402a50]
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 0x40248e
mov edi, 1
cmp dword [ebx + 0x34], edi
jne 0x402408
push eax
call fcn.00461a90
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402476
sub eax, edi
je 0x402469
sub eax, edi
jne 0x40248e
cmp dword [ebx + 0x34], edi
jne 0x402431
mov edx, dword [esi]
push eax
push 9
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40248a
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 0x40248a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
push 0x100c
push eax
jmp 0x402482
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.0046c670
mov ecx, dword [esp + 0x44]
jmp 0x402623
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.0046c670
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 0x402623
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x34], esi
cmp ecx, 8
jne 0x40262c
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x3c], ecx
mov eax, dword [esp + 0x24]
push 0x18
push 0
push eax
mov eax, dword [0x4c17f0]
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 0x402653
mov byte [eax], 1
jmp 0x402662
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
cmp al, 0xa
je 0x402581
cmp al, 0x15
jne 0x40261c
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.0046c670
mov ecx, dword [esp + 0x44]
jmp 0x402620
cmp cl, 0x49
jne 0x40261c
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x4025a8
mov edx, 0x53
mov word [esp + 0x90], dx
jmp 0x4025bd
test ecx, 0x200
je 0x4025c4
mov eax, 0x73
mov word [esp + 0x90], ax
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x4025d3
mov edx, 0x46
jmp 0x4025e0
test ecx, 0x800
je 0x4025e6
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x4025f8
mov ecx, 0x43
mov word [eax], cx
jmp 0x402608
test ecx, 0x2000
je 0x40260b
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 0x402501
cmp ecx, 5
je 0x402501
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x9c]
push edx
call fcn.0046dd60
jmp 0x402514
cmp byte [esp + 0x1e], 0
je 0x402662
mov eax, dword [esp + 0x14]
or byte [eax + 5], 4
mov ecx, dword [esp + 0x4c]
call fcn.004012b0
mov edx, dword [esp + 0x78]
mov esi, dword [edx*4 + 0x4c1600]
xor ebx, ebx
mov dword [esp + 0xc], esi
cmp esi, ebx
je case.0x4026a8.9
cmp edi, dword [esi + 0xc]
jae 0x402698
mov ecx, dword [esi + 0x14]
lea eax, [edi + edi*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x14], edx
jmp 0x40269c
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x44]
add eax, 0xfffffffb
cmp eax, 4
ja case.default.0x4026a8
jmp dword [eax*4 + 0x402a64]
mov byte [esi + 0x32], bl
jmp case.0x4026a8.9
mov byte [esi + 0x30], bl
jmp case.0x4026a8.9
mov byte [esi + 0x31], bl
jmp case.0x4026a8.9
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x4026d8
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.0x4026a8.9
cmp dword [esp + 0x14], ebx
je case.0x4026a8.9
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
jmp case.0x4026a8.9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40272a
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.004012b0
jmp case.0x4026a8.9
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [ebx + 0xc0], ecx
call fcn.0040c150
jmp case.0x4026a8.9
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x40277e
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
jne 0x40277a
push 0xf
call edi
test eax, eax
jne 0x40277a
mov eax, 2
jmp 0x402780
mov eax, esi
jmp 0x402780
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c17f0]
call fcn.004010e0
mov ecx, dword [0x4c3bc0]
mov byte [0x4c3bbc], 1
call fcn.004012b0
mov byte [0x4c3bbc], 0
jmp case.0x4026a8.9
mov edx, dword [esp + 0x58]
mov al, byte [edx + 0x12]
cmp al, 0x9c
jb 0x4027c3
cmp al, 0x9f
ja 0x4027c3
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.00409f30
mov ecx, dword [0x4c17f0]
dec dword [0x4c0fe0]
sub dword [0x4bd41c], 0xf8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0xfc]
push eax
call fcn.0046dd60
push 0
mov eax, 0x4c3168
call fcn.00415140
cmp dword [ebp + 0xc], 0
je 0x40147b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a80
add esp, 8
test eax, eax
je 0x40147b
mov byte [esp + 0x1c], 1
mov byte [esp + 0x5c], 1
jmp 0x40147b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4028a5
mov eax, dword [0x4bd41c]
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 0x402898
cmp dword [0x4c1008], 0
je 0x402887
push 0x4c17f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4bd41c]
mov byte [eax + 0xe0], 0
jmp 0x40147b
mov ecx, dword [0x4bd41c]
mov byte [ecx + 0xe0], 0
mov eax, dword [0x4c0e88]
test eax, eax
je 0x4028c8
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [0x4c0e74]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40147b
mov eax, dword [0x4bd41c]
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 [0x4bd41c]
mov byte [ecx + 0xe0], 0
jmp 0x40147b
cmp esi, 0xffffffff
jle 0x402924
mov dword [0x4c3c18], 0
mov dword [0x4c3c1c], 0
mov dword [0x4c3c28], eax
cmp byte [esp + 0x1b], 0
mov dword [0x4c3c2c], eax
je 0x402937
mov byte [0x4c0fcc], 0
cmp byte [esp + 0x1d], 0
je 0x401cbc
dec dword [0x4c0fdc]
test esi, esi
jle 0x401cbc
cmp dword [0x4c0fdc], 0
jne 0x401cbc
cmp dword [0x4c3bd8], 0
jne 0x401cbc
cmp dword [0x4c29f0], 0
jne 0x401cbc
cmp byte [0x4c0fc6], 0
je 0x401cbc
mov edx, dword [0x4c0e74]
push 9
push edx
jmp 0x401cab