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.00496a40
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x1b], bl
cmp edi, 2
jne 0x4012cd
mov edi, 1
mov dword [ebp + 0xc], edi
cmp byte [0x4c4040], bl
jne 0x4012cd
mov byte [0x4c4040], 1
mov byte [esp + 0x1b], 1
cmp dword [0x4c6b60], ebx
je 0x401301
cmp dword [0x4c6b50], ebx
je 0x4012ef
mov eax, dword [0x4c6b48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c6b50], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c6b60], ebx
mov dword [0x4c6b48], ebx
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x40131f
mov esi, 0xa
mov dword [ebp + 8], esi
mov byte [esp + 0x4c], 1
mov dword [esp + 0x64], ebx
jmp 0x40133d
cmp esi, 5
setle al
mov byte [esp + 0x4c], 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 [0x4c58e8], ebx
je 0x40134a
call fcn.00402c30
mov byte [esp + 0x13], bl
cmp dword [0x4c6ab4], ebx
je 0x401364
call fcn.00402aa0
test al, al
je 0x401364
mov byte [esp + 0x13], 1
cmp esi, ebx
jle 0x4015d4
cmp edi, 1
jne 0x4015d4
inc dword [0x4c4050]
mov byte [esp + 0x18], 1
cmp byte [0x4c403a], bl
jne 0x4013a5
mov ecx, dword [0x4c3ee8]
push ebx
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c403a], dl
mov byte [esp + 0x23], bl
mov byte [esp + 0x1a], 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 + 0x60], esi
jle 0x4015dd
cmp byte [esp + 0x1a], 0
jne 0x4015dd
cmp byte [0x4c4040], 0
jne 0x4015ea
call fcn.00403220
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 [0x4c6b00], eax
inc dword [esp + 0x68]
cmp dword [0x4c46d8], 0
je 0x401457
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x8c]
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.00402ca0
add esp, 0x18
test al, al
jne 0x4013b1
mov edx, dword [0x4c467c]
test edx, edx
je 0x401b05
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401b05
cmp eax, dword [0x4c3ee8]
je 0x401b05
mov eax, dword [esp + 0x28]
cmp eax, 0x414
je 0x401b05
cmp eax, 0x402
je 0x401b05
add eax, 0xffffff00
cmp eax, 9
ja 0x401ab1
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x401aab
call fcn.00476c50
mov esi, eax
test esi, esi
je 0x401aab
mov eax, edi
call fcn.0045b330
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x401aab
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x4014f5
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013b1
cmp dword [esp + 0x28], 0x100
jne 0x401a37
cmp byte [ebx + 0xb8], 0
je 0x4018a3
mov eax, dword [esp + 0x2c]
cmp eax, 0x22
je 0x401531
cmp eax, 0x21
je 0x401531
cmp eax, 9
je 0x401531
cmp eax, 0x25
je 0x401531
cmp eax, 0x27
jne 0x4018a3
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 0x40155d
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x40155d
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0xc]
cmp esi, dword [eax + 0x10]
jae 0x40188d
mov edx, dword [eax + 0x18]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], ebx
lea eax, [edx + ecx*4]
jne 0x40188d
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401895
mov al, byte [ecx + 4]
cmp al, 0xf
je 0x401895
xor ebx, ebx
cmp al, 0x13
mov eax, dword [esp + 0x2c]
jne 0x40196b
mov ebx, ecx
cmp eax, 0x25
je 0x4015b3
cmp eax, 0x27
jne 0x40196b
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.00468050
jmp 0x4013b1
mov byte [esp + 0x18], bl
jmp 0x4013a5
cmp byte [0x4c4040], 0
je 0x401787
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401787
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c6004]
jne 0x401787
cmp dword [0x4c4080], 0
je 0x401669
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 0x40165b
test dx, dx
je 0x401657
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40165b
add eax, 4
add ecx, 4
test dx, dx
jne 0x401635
xor eax, eax
jmp 0x401660
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4016be
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401787
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.0048b419
add esp, 8
test eax, eax
je 0x4016be
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.0048b419
add esp, 8
test eax, eax
jne 0x401787
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
call edi
test eax, eax
jne 0x401703
push 1
call fcn.00403220
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea edx, [esp + 0x34]
push edx
call edi
jmp 0x401802
mov esi, dword [esp + 0x34]
push 0
call fcn.00403220
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea eax, [esp + 0x34]
push eax
call edi
push 1
test eax, eax
jne 0x401744
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
call edi
jmp 0x401802
mov edx, dword [esp + 0x38]
sub edx, esi
test edx, edx
jle 0x401763
push 0x1ff
push 0
push 0
lea eax, [esp + 0x34]
push eax
call edi
jmp 0x401802
call fcn.00403220
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea ecx, [esp + 0x34]
push ecx
call edi
jmp 0x401802
cmp dword [0x4c03d4], 0
je 0x4017e0
cmp dword [0x4c4074], 0
jne 0x4017e0
mov eax, dword [0x4c040c]
cmp byte [eax + 0xe8], 0
jne 0x4017d7
cmp byte [eax + 0xea], 0
jne 0x4017d7
cmp dword [eax + 0xdc], 0xffffffff
jle 0x4017d7
call ebx
mov edx, eax
mov eax, dword [0x4c040c]
sub edx, dword [eax + 0xd8]
cmp edx, dword [eax + 0xdc]
jb 0x4017d7
mov byte [eax + 0xe8], 1
movzx eax, byte [eax + 0xe8]
jmp 0x4017e2
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 + 0x60]
cmp ecx, 3
jbe 0x40181c
mov dword [0x4c6b00], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40183b
cmp byte [esp + 0x23], 0
jne 0x40183b
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x23], 1
jmp 0x4013b1
cmp dword [esp + 0x68], 0
jne 0x401862
cmp byte [esp + 0x4c], 0
je 0x401862
test esi, esi
jle 0x401855
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x68], 1
jmp 0x4013b1
call ebx
cmp byte [esp + 0x4c], 0
jne 0x4028fa
mov edx, dword [esp + 0x64]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x4028fa
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013b1
mov dword [esp + 0x14], 0
cmp dword [esp + 0x28], 0x100
jne 0x401a37
mov eax, dword [esp + 0x2c]
cmp eax, 0x1b
je 0x4018d0
cmp eax, 9
je 0x4018d0
cmp eax, 0x41
jne 0x401a37
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x401a37
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 0x4018fc
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x4018fc
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov ecx, dword [esp + 0xc]
cmp esi, dword [ecx + 0x10]
jae 0x401a2f
mov eax, dword [ecx + 0x18]
lea edx, [esi + esi*4]
cmp dword [eax + edx*4], ebx
lea eax, [eax + edx*4]
jne 0x401a2f
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a37
cmp byte [eax + 4], 0xc
jne 0x401a37
mov edx, dword [esp + 0x2c]
cmp edx, 0x1b
je 0x401a85
cmp edx, 0x41
je 0x401a68
test byte [eax + 5], 0x80
je 0x401a37
mov ecx, dword [eax]
push 0x49e874
push 1
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
cmp eax, 0x25
je 0x401895
cmp eax, 0x27
je 0x401895
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401895
cmp dword [esp + 0x2c], 9
mov esi, dword [esp + 0x14]
jne 0x4019b7
cmp byte [esi + 4], 0xc
jne 0x4019b7
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x401895
test ebx, ebx
jne 0x4019e2
mov bl, byte [esi + 6]
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00467dc0
mov ebx, eax
test ebx, ebx
jne 0x4019e6
xor bl, bl
call fcn.00467dc0
mov ebx, eax
test ebx, ebx
je 0x401895
jmp 0x4019e6
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
cmp eax, 0x22
je 0x401a1a
cmp eax, 9
jne 0x401a06
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a1a
xor al, al
push 1
push 1
push eax
push esi
mov eax, ebx
call fcn.00468050
jmp 0x4013b1
mov eax, 1
push eax
push eax
push eax
push esi
mov eax, ebx
call fcn.00468050
jmp 0x4013b1
mov dword [esp + 0x14], 0
mov eax, dword [0x4c5fb4]
test eax, eax
je 0x401aab
cmp dword [esp + 0x28], 0x100
jne 0x401aab
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xd
jne 0x401a91
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
test byte [eax + 5], 2
jne 0x401a37
mov edx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
mov eax, ecx
call fcn.004645f0
jmp 0x4013b1
cmp ecx, 0x1b
jne 0x401aab
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013b1
mov edx, dword [0x4c467c]
xor ebx, ebx
test edx, edx
jle 0x401b05
mov eax, dword [0x4c040c]
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov byte [eax + 0xe4], 1
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xe0], ecx
mov eax, dword [0x4c4678]
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x24]
push edx
mov edx, dword [ecx + 4]
push edx
call esi
test eax, eax
jne 0x40287b
mov edx, dword [0x4c467c]
mov eax, dword [0x4c040c]
inc ebx
mov byte [eax + 0xe4], 0
cmp ebx, edx
jl 0x401ac2
mov eax, dword [esp + 0x28]
cmp eax, 0x312
ja 0x401c6c
je case.0x401c7d.1026
cmp eax, 0x100
ja 0x401b8a
je 0x401b5b
cmp eax, 0x12
je 0x401b45
cmp eax, 0x4b
jne case.0x401c7d.1027
mov dword [0x4c4020], 0
mov byte [esp + 0x1a], 1
jmp 0x4013b1
push 0
xor eax, eax
push 0x4c6048
lea ecx, [eax + 6]
call fcn.00415860
jmp 0x4013b1
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x4c3eec]
jne case.0x401c7d.1027
cmp dword [esp + 0x2c], 0x1b
jne case.0x401c7d.1027
mov edx, dword [0x4c3ee8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013b1
cmp eax, 0x113
jne case.0x401c7d.1027
cmp dword [esp + 0x30], 0
jne case.0x401c7d.1027
mov eax, dword [0x4c3ee8]
cmp dword [esp + 0x24], eax
jne case.0x401c7d.1027
cmp dword [0x4c58e8], 0
je 0x401bbd
call fcn.00402c30
cmp dword [0x4c6ab4], 0
je 0x401bd4
call fcn.00402aa0
test al, al
je 0x401bd4
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x4013b1
cmp dword [ebp + 8], 1
jl 0x4013b1
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a60
add esp, 8
test eax, eax
je 0x4013b1
cmp byte [esp + 0x1b], 0
je 0x401c13
mov byte [0x4c4040], 0
cmp byte [esp + 0x18], 0
je 0x401c61
dec dword [0x4c4050]
test esi, esi
jle 0x401c61
cmp dword [0x4c4050], 0
jne 0x401c61
cmp dword [0x4c6ab4], 0
jne 0x401c61
cmp dword [0x4c58e8], 0
jne 0x401c61
cmp byte [0x4c403a], 0
je 0x401c61
mov eax, dword [0x4c3ee8]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c61
mov byte [0x4c403a], 0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffc00
cmp eax, 0x15
ja case.0x401c7d.1027
movzx eax, byte [eax + 0x402994]
jmp dword [eax*4 + 0x402988]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x401d15
cmp esi, dword [0x4c3ee8]
je 0x401d15
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x402899
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c6004]
jne 0x402899
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 edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402838
test dx, dx
je 0x401d0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402838
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ce0
xor eax, eax
jmp 0x40283d
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
xor edi, edi
add eax, 0xfffffbff
mov dword [esp + 0x60], edi
cmp eax, 0x14
ja case.0x401d34.1027
movzx ecx, byte [eax + 0x4029c0]
jmp dword [ecx*4 + 0x4029ac]
xor eax, eax
test edx, edx
jle 0x401d54
mov ecx, dword [0x4c4678]
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], esi
je 0x401d5d
inc eax
cmp eax, edx
jl 0x401d47
mov dword [esp + 0xc], edi
jmp case.0x401c7d.1027
mov eax, ebx
mov dword [esp + 0xc], eax
test eax, eax
je case.0x401c7d.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 + 0x74], edx
cmp ecx, 8
jne 0x401d9b
mov dword [esp + 0x1c], edx
mov edx, 0x2af8
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0xc]
cmp edx, dword [ebx + 0x10]
jae 0x401daf
mov eax, dword [ebx + 0x18]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
jmp 0x401db1
xor edx, edx
lea eax, [ecx - 5]
mov dword [esp + 0x14], edx
mov dword [esp + 0x58], edi
mov byte [esp + 0x19], 0
cmp eax, 4
ja case.default.0x401dca
jmp dword [eax*4 + 0x4029d8]
mov ebx, dword [ebx + 0x2c]
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4013b1
mov ecx, dword [esp + 0xc]
mov edx, ebx
mov eax, dword [edx + 4]
mov al, byte [eax]
add ecx, 0x3a
mov dword [esp + 0x58], ecx
jmp 0x402082
mov ebx, dword [ebx + 0x24]
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4013b1
mov edx, dword [esp + 0xc]
add edx, 0x38
mov dword [esp + 0x58], edx
mov edx, ebx
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x402082
mov ebx, dword [ebx + 0x28]
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4013b1
mov eax, dword [esp + 0xc]
add eax, 0x39
mov dword [esp + 0x58], eax
mov edx, ebx
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x402082
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4013b1
mov edx, ebx
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x402082
mov edi, dword [ebx + 0x68]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x60], edi
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x401e8d
test edi, edi
je 0x4013b1
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x401eea
test edi, edi
je 0x4013b1
push edi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x68], 0
jmp 0x4013b1
test edx, edx
je 0x4013b1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x401edb
test byte [ecx + 5], 1
je 0x4013b1
mov eax, dword [esp + 0xc]
call fcn.00464590
jmp 0x4013b1
test byte [ecx + 5], 4
jne 0x4013b1
mov byte [esp + 0x19], 1
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x402082
mov edx, dword [esp + 0x30]
mov eax, 0x4c6048
call fcn.00401260
mov dword [esp + 0x70], eax
test eax, eax
je 0x4013b1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4013b1
jmp 0x40207d
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x4c58f0]
jae 0x4013b1
mov edx, dword [0x4c58ec]
mov eax, dword [edx + eax*4]
mov bl, byte [eax + 0x24]
mov dword [esp + 0x50], eax
test bl, bl
je 0x401f85
mov eax, dword [eax]
test eax, eax
je 0x401f50
mov eax, dword [eax]
jmp 0x401f55
mov eax, 0x49e828
mov esi, dword [esp + 0x50]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x10]
call fcn.00409370
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x4013b1
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401f8b
cmp al, 3
je 0x401f8b
jmp 0x401f87
mov esi, eax
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x30]
push ecx
push esi
call fcn.0040c520
mov edx, dword [esi + 8]
cmp word [edx], di
jne 0x4013b1
cmp byte [esi + 0x2f], 0
je 0x401fc0
movsx ax, byte [esp + 0x30]
mov word [0x4c6acc], ax
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x402082
xor ecx, ecx
mov word [0x4c6acc], cx
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov al, byte [eax]
jmp 0x402082
mov ecx, dword [0x4c6a9c]
mov edx, dword [ecx + 4]
mov al, byte [edx]
jmp 0x402082
mov edx, dword [esp + 0x2c]
mov ecx, dword [0x4c15d0]
mov eax, edx
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4013b1
mov ecx, dword [eax*4 + 0x4c4938]
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x6c], ecx
test ax, ax
je 0x40203a
mov ecx, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x54], ecx
test ax, ax
je 0x402036
mov ecx, dword [ecx + 0x14]
add eax, 0xffff
test ax, ax
jne 0x402025
mov dword [esp + 0x54], ecx
test ecx, ecx
jne 0x402058
mov ecx, dword [esp + 0x6c]
push ecx
lea eax, [esp + 0x4c]
call fcn.00409dc0
mov ecx, eax
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x4013b1
jmp 0x40205c
mov ecx, dword [esp + 0x54]
mov al, byte [ecx + 0x1e]
cmp al, 2
je 0x402077
cmp al, 4
je 0x402077
cmp al, 5
jne 0x40207b
mov edx, dword [0x4c4070]
mov dword [esp + 0x48], edx
jmp 0x40207b
mov dword [esp + 0x48], edi
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
mov ecx, dword [0x4c4054]
mov edx, dword [0x4c03e0]
mov byte [esp + 0x5c], al
cmp ecx, edx
jl 0x4020dc
add edx, 2
cmp ecx, edx
jge 0x4020bd
cmp al, 0xdd
je 0x4020dc
cmp al, 0xc9
je 0x4020dc
cmp al, 0xd7
je 0x4020dc
cmp al, 0xd8
je 0x4020dc
cmp al, 0xd3
je 0x4020dc
cmp al, 0xd4
je 0x4020dc
cmp al, 0xd5
je 0x4020dc
cmp al, 0xd6
je 0x4020dc
test edi, edi
je 0x4013b1
push edi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x68], 0
jmp 0x4013b1
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4020f5.1027
movzx eax, byte [eax + 0x402a00]
jmp dword [eax*4 + 0x4029ec]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40210d
cmp byte [eax], 0
jne 0x4013b1
xor ebx, ebx
jmp 0x4021c6
cmp dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + 0x18]
je 0x402156
mov esi, dword [esp + 0x2c]
call fcn.0045b300
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
jne 0x4021ca
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4021ca
cmp eax, dword [0x4c3ee8]
jne case.0x401c7d.1027
jmp 0x4021ca
xor edi, edi
mov dword [esp + 0xc], edi
jmp 0x4021ca
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 0x14]
jmp 0x4021c6
cmp byte [0x4c6a98], 0
jne 0x4013b1
xor ebx, ebx
jmp 0x4021c6
mov esi, dword [esp + 0x54]
mov al, byte [esi + 0x1f]
cmp al, byte [esi + 0x20]
jb 0x4021c3
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov al, byte [edx]
cmp al, 0xdd
je 0x4021c3
cmp al, 0xc9
je 0x4021c3
cmp al, 0xd7
je 0x4021c3
cmp al, 0xd8
je 0x4021c3
cmp al, 0xd3
je 0x4021c3
cmp al, 0xd4
je 0x4021c3
cmp al, 0xd5
je 0x4021c3
cmp al, 0xd6
je 0x4021c3
cmp byte [esi + 0x23], 0
je 0x4021b5
mov byte [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 4], eax
jmp 0x4013b1
mov ebx, dword [esi + 0x18]
mov edi, dword [esp + 0xc]
mov eax, dword [0x4c040c]
cmp ebx, dword [eax + 0x2c]
jge 0x4021f3
mov eax, dword [esp + 0x60]
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 + 0x13], 1
cmp eax, 0x402
je 0x402269
cmp eax, 0x413
jbe 0x402215
cmp eax, 0x415
jbe 0x4022aa
mov ecx, dword [0x4c6a8c]
mov edx, dword [0x4c6ac4]
mov dword [0x4c6a90], ecx
mov dword [0x4c6ac8], edx
cmp eax, 0x401
jne 0x40224f
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [0x4c6a8c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c6ac4], eax
jmp 0x4022aa
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov dword [0x4c6a8c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c6ac4], eax
jmp 0x4022aa
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
push 0x104
push edx
push 0x4c6678
call fcn.0048dfc4
xor eax, eax
mov word [0x4c6880], ax
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
add esp, 0xc
push 0x104
push edx
push 0x4c6882
call fcn.0048dfc4
add esp, 0xc
xor eax, eax
mov word [0x4c6a8a], ax
mov esi, dword [0x4c46ec]
cmp byte [esi + 0x17], 0
jne 0x4022b9
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4022c6
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4022df
test byte [esi + 0x15], 4
je 0x4022da
mov eax, esi
call fcn.0042fc10
mov eax, dword [esi + 8]
jmp 0x4022ef
cmp al, 2
jne 0x4022ea
call fcn.00401000
jmp 0x4022ef
mov eax, 0x4c5ff0
push 0x7f
push eax
lea ecx, [esp + 0xf8]
push ecx
call fcn.0048dfc4
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.00403080
mov ebx, dword [0x4c040c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c6b04], eax
mov dword [0x4c6b00], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x40234c.1027
movzx ecx, byte [eax + 0x402a2c]
jmp dword [ecx*4 + 0x402a18]
mov ecx, dword [esp + 0x44]
xor edx, edx
lea eax, [ecx - 5]
mov word [esp + 0x90], dx
cmp eax, 4
ja case.default.0x40236d
jmp dword [eax*4 + 0x402a44]
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 0x402438
cmp eax, 1
jne 0x4023af
push edi
call fcn.004681c0
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402421
dec eax
je 0x402413
dec eax
jne 0x402438
cmp dword [ebx + 0x34], 1
jne 0x4023db
push eax
mov eax, dword [esi]
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402434
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esi]
push eax
push ecx
mov dword [esp + 0x88], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi]
lea edx, [esp + 0x7c]
push edx
push 0
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402434
mov ecx, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
jmp 0x40242d
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 + 0xc]
mov ecx, dword [eax + 4]
mov esi, edi
call fcn.00473620
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
jmp 0x4025d4
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.00473620
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 0x4025d4
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025dd
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x1c]
push 0x18
push 0
push eax
mov eax, dword [0x4c46ec]
call fcn.004010e0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x74]
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 + 0x58]
test ebx, ebx
je 0x402695
mov byte [ebx], 1
jmp 0x4026a0
mov esi, dword [esp + 0x14]
mov al, byte [esi + 4]
cmp al, 0xa
je 0x402536
cmp al, 0x18
jne 0x4025d1
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.00473620
mov esi, dword [esp + 0x14]
jmp 0x4025cd
cmp cl, 0x49
jne 0x4025d1
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x40255d
mov eax, 0x53
mov word [esp + 0x90], ax
jmp 0x402572
test ecx, 0x200
je 0x402579
mov edx, 0x73
mov word [esp + 0x90], dx
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x402588
mov edx, 0x46
jmp 0x402595
test ecx, 0x800
je 0x40259b
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x4025ad
mov ecx, 0x43
mov word [eax], cx
jmp 0x4025bd
test ecx, 0x2000
je 0x4025c0
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 0x4024ba
cmp ecx, 5
je 0x4024ba
test esi, esi
je 0x402676
cmp byte [esi + 4], 0x16
jne 0x402676
push 0x10b8
lea edx, [esp + 0x1f4]
push 0
push edx
call fcn.00494120
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 0x4024cd
cmp word [esp + 0x260], 0
lea eax, [esp + 0x260]
jne 0x40265f
lea eax, [esp + 0x200]
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c46ec]
push eax
call fcn.00474e60
jmp 0x4024cd
mov edx, dword [0x4c46ec]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x9c]
push ecx
push edx
call fcn.00474e60
jmp 0x4024cd
cmp byte [esp + 0x19], 0
je 0x4026a0
or byte [esi + 5], 4
mov ecx, dword [esp + 0x40]
call fcn.00401220
cmp dword [edi + 4], 0
je 0x4026f5
test ebx, ebx
je 0x4026b8
mov byte [ebx], 0
jmp 0x4026c3
cmp byte [esp + 0x19], 0
je 0x4026c3
and byte [esi + 5], 0xfb
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4026f5
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.0045d4c0
jmp 0x4027f2
test edi, edi
je 0x40271f
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 + 0x70]
mov ecx, dword [ecx + 0xc]
call fcn.00401220
test edi, edi
je 0x4027f2
mov esi, edi
call fcn.0045d4c0
jmp 0x4027f2
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
mov dword [ebx + 0xc0], edx
mov al, byte [esi + 0x25]
mov byte [ebx + 0xf2], al
call fcn.0040c490
jmp 0x4027f2
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x40278e
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x402787
push 0xf
call esi
test eax, eax
jne 0x402787
mov eax, 2
jmp 0x402790
mov eax, 1
jmp 0x402790
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c46ec]
call fcn.004010e0
mov ecx, dword [0x4c6a9c]
mov byte [0x4c6a98], 1
call fcn.00401220
mov byte [0x4c6a98], 0
jmp 0x4027f2
mov esi, dword [esp + 0x6c]
mov al, byte [esi + 0x12]
cmp al, 0x9c
jb 0x4027d3
cmp al, 0x9f
ja 0x4027d3
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x38], ecx
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
mov dword [ebx + 0xc0], edx
mov cl, byte [eax + 0x21]
mov byte [ebx + 0xf2], cl
push esi
mov ebx, eax
call fcn.0040a130
lea edx, [esp + 0xf0]
push edx
call fcn.00403180
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4013b1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.00402a60
add esp, 8
test eax, eax
je 0x4013b1
mov byte [esp + 0x1a], 1
mov byte [esp + 0x4c], 1
jmp 0x4013b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402899
mov eax, dword [0x4c040c]
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 0x40288c
cmp dword [0x4c4080], 0
je 0x40287b
push 0x4c46f0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4c040c]
mov byte [eax + 0xe4], 0
jmp 0x4013b1
mov ecx, dword [0x4c040c]
mov byte [ecx + 0xe4], 0
mov eax, dword [0x4c3efc]
test eax, eax
je 0x4028bc
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [0x4c3ee8]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013b1
mov eax, dword [0x4c040c]
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 [0x4c040c]
mov byte [ecx + 0xe4], 0
jmp 0x4013b1
cmp esi, 0xffffffff
jle 0x402918
mov dword [0x4c6af0], 0
mov dword [0x4c6af4], 0
mov dword [0x4c6b00], eax
cmp byte [esp + 0x1b], 0
mov dword [0x4c6b04], eax
je 0x40292b
mov byte [0x4c4040], 0
cmp byte [esp + 0x18], 0
je 0x401c61
dec dword [0x4c4050]
test esi, esi
jle 0x401c61
cmp dword [0x4c4050], 0
jne 0x401c61
cmp dword [0x4c6ab4], 0
jne 0x401c61
cmp dword [0x4c58e8], 0
jne 0x401c61
cmp byte [0x4c403a], 0
je 0x401c61
mov edx, dword [0x4c3ee8]
push 9
push edx
jmp 0x401c50