Function at 0x4012b0
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.00494440
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x1e], bl
cmp edi, 2
jne 0x4012ed
mov edi, 1
mov dword [ebp + 0xc], edi
cmp byte [0x4c2020], bl
jne 0x4012ed
mov byte [0x4c2020], 1
mov byte [esp + 0x1e], 1
cmp dword [0x4c403c], ebx
je 0x401321
cmp dword [0x4c402c], ebx
je 0x40130f
mov eax, dword [0x4c4024]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c402c], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c403c], ebx
mov dword [0x4c4024], ebx
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x40133f
mov esi, 0xa
mov dword [ebp + 8], esi
mov byte [esp + 0x50], 1
mov dword [esp + 0x64], ebx
jmp 0x40135d
cmp esi, 5
setle al
mov byte [esp + 0x50], al
test al, al
je 0x401353
mov dword [esp + 0x64], ebx
jmp 0x40135d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x64], eax
cmp dword [0x4c38c8], ebx
je 0x40136a
call fcn.00402c30
mov byte [esp + 0xf], bl
cmp dword [0x4c4aa8], ebx
je 0x401384
call fcn.00402aa0
test al, al
je 0x401384
mov byte [esp + 0xf], 1
cmp esi, ebx
jle 0x4015e1
cmp edi, 1
jne 0x4015e1
inc dword [0x4c2030]
mov byte [esp + 0x1d], 1
cmp byte [0x4c201a], bl
jne 0x4013c5
mov ecx, dword [0x4c1ec8]
push ebx
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c201a], dl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x1c], 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 + 0x48], esi
jle 0x4015ea
cmp byte [esp + 0x1c], 0
jne 0x4015ea
cmp byte [0x4c2020], 0
jne 0x4015f7
call fcn.00403200
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 0x4013d1
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x401439
mov dword [0x4c4af8], eax
inc dword [esp + 0x68]
cmp dword [0x4c26b8], 0
je 0x401477
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 0x4013d1
mov edx, dword [0x4c265c]
test edx, edx
je 0x401b03
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401b03
cmp eax, dword [0x4c1ec8]
mov eax, dword [esp + 0x28]
je 0x401b47
cmp eax, 0x414
je 0x401b03
cmp eax, 0x402
je 0x401b03
cmp eax, 0x100
jae 0x4014c9
cmp eax, 0x109
ja 0x401a9d
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x401aa3
call fcn.00474940
mov esi, eax
test esi, esi
je 0x401aa3
call fcn.00459e90
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x401aa3
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x401517
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013d1
cmp dword [esp + 0x28], 0x100
mov esi, dword [esp + 0x2c]
jne 0x401a2d
cmp byte [ebx + 0xb8], 0
je 0x4018b8
cmp esi, 0x22
je 0x401553
cmp esi, 0x21
je 0x401553
cmp esi, 9
je 0x401553
cmp esi, 0x25
je 0x401553
cmp esi, 0x27
jne 0x4018b8
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x401580
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x401577
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x40189a
mov eax, dword [ebx + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4018a2
mov al, byte [eax + 4]
cmp al, 0xf
je 0x4018a2
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp al, 0x13
jne 0x401967
mov ebx, dword [esp + 0x10]
cmp esi, 0x25
je 0x4015c0
cmp esi, 0x27
jne 0x401967
mov eax, dword [esp + 0x14]
cmp esi, 0x27
push 0
sete cl
movzx edx, cl
push 0
push edx
push eax
mov eax, dword [esp + 0x20]
call fcn.004662d0
jmp 0x4013d1
mov byte [esp + 0x1d], bl
jmp 0x4013c5
cmp byte [0x4c2020], 0
je 0x401794
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401794
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fe4]
jne 0x401794
cmp dword [0x4c2060], 0
je 0x401676
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 0x401668
test dx, dx
je 0x401664
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401668
add eax, 4
add ecx, 4
test dx, dx
jne 0x401642
xor eax, eax
jmp 0x40166d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4016cb
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401794
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.00488e19
add esp, 8
test eax, eax
je 0x4016cb
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.00488e19
add esp, 8
test eax, eax
jne 0x401794
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 0x401710
push 1
call fcn.00403200
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 0x40180f
mov esi, dword [esp + 0x34]
push 0
call fcn.00403200
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 0x401751
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
call edi
jmp 0x40180f
mov edx, dword [esp + 0x38]
sub edx, esi
test edx, edx
jle 0x401770
push 0x1ff
push 0
push 0
lea eax, [esp + 0x34]
push eax
call edi
jmp 0x40180f
call fcn.00403200
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 0x40180f
cmp dword [0x4be3d4], 0
je 0x4017ed
cmp dword [0x4c2054], 0
jne 0x4017ed
mov eax, dword [0x4be40c]
cmp byte [eax + 0xe8], 0
jne 0x4017e4
cmp byte [eax + 0xea], 0
jne 0x4017e4
cmp dword [eax + 0xdc], 0xffffffff
jle 0x4017e4
call ebx
mov edx, eax
mov eax, dword [0x4be40c]
sub edx, dword [eax + 0xd8]
cmp edx, dword [eax + 0xdc]
jb 0x4017e4
mov byte [eax + 0xe8], 1
movzx eax, byte [eax + 0xe8]
jmp 0x4017ef
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 0x401439
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x48]
cmp ecx, 3
jbe 0x401829
mov dword [0x4c4af8], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401848
cmp byte [esp + 0x1f], 0
jne 0x401848
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x1f], 1
jmp 0x4013d1
cmp dword [esp + 0x68], 0
jne 0x40186f
cmp byte [esp + 0x50], 0
je 0x40186f
test esi, esi
jle 0x401862
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x68], 1
jmp 0x4013d1
call ebx
cmp byte [esp + 0x50], 0
jne 0x4028fe
mov edx, dword [esp + 0x64]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x4028fe
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013d1
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x28], 0x100
jne 0x401a2d
mov ebx, dword [esp + 0x14]
cmp esi, 0x1b
je 0x4018e1
cmp esi, 9
je 0x4018e1
cmp esi, 0x41
jne 0x401a2d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a29
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x40190e
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x401905
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x401a21
mov eax, dword [ebx + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401a29
cmp byte [eax + 4], 0xc
jne 0x401a29
mov esi, dword [esp + 0x2c]
cmp esi, 0x1b
je 0x401a77
cmp esi, 0x41
je 0x401a5a
test byte [eax + 5], 0x80
je 0x401a2d
mov ecx, dword [eax]
push 0x49c868
push 1
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013d1
cmp esi, 0x25
je 0x4018a6
cmp esi, 0x27
je 0x4018a6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4018a2
mov esi, dword [esp + 0x2c]
cmp esi, 9
jne 0x4019bb
mov edx, dword [esp + 0x10]
cmp byte [edx + 4], 0xc
jne 0x4019bb
mov eax, edx
mov ecx, dword [eax]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x4018a2
mov esi, dword [esp + 0x2c]
test ebx, ebx
jne 0x4019e6
mov edx, dword [esp + 0x10]
mov bl, byte [edx + 6]
mov ecx, dword [esp + 0x14]
call fcn.00466040
mov ebx, eax
test ebx, ebx
jne 0x4019e6
xor bl, bl
call fcn.00466040
mov ebx, eax
test ebx, ebx
je 0x4018a6
cmp esi, 0x22
je 0x401a06
cmp esi, 9
jne 0x401a02
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a06
xor al, al
jmp 0x401a0b
mov eax, 1
mov edx, dword [esp + 0x14]
push 1
push 1
push eax
push edx
mov eax, ebx
call fcn.004662d0
jmp 0x4013d1
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x2c]
mov eax, dword [0x4c3f94]
test eax, eax
je 0x401aa7
cmp dword [esp + 0x28], 0x100
jne 0x401aa7
cmp esi, 0xd
jne 0x401a83
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013d1
test byte [eax + 5], 2
jne 0x401a2d
mov edx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013d1
mov eax, ebx
call fcn.00462a50
jmp 0x4013d1
cmp esi, 0x1b
jne 0x401aa7
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013d1
mov esi, dword [esp + 0x2c]
jmp 0x401aad
mov esi, dword [esp + 0x2c]
mov edx, dword [0x4c265c]
xor ebx, ebx
test edx, edx
jle 0x401b07
mov eax, dword [0x4be40c]
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, edi
mov byte [eax + 0xe4], 1
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xe0], ecx
mov eax, dword [0x4c2658]
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 0x40287f
mov edx, dword [0x4c265c]
mov eax, dword [0x4be40c]
inc ebx
mov byte [eax + 0xe4], 0
cmp ebx, edx
jl 0x401ac0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp eax, 0x312
ja 0x401c72
je 0x401d1b
cmp eax, 0x100
ja 0x401b90
je 0x401b63
cmp eax, 0x12
je 0x401b4d
cmp eax, 0x4b
jne case.0x401c83.1027
mov dword [0x4c2000], 0
mov byte [esp + 0x1c], 1
jmp 0x4013d1
mov esi, dword [esp + 0x2c]
jmp 0x401b0b
push 0
xor eax, eax
push 0x4c4040
lea ecx, [eax + 6]
call fcn.00415b30
jmp 0x4013d1
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x4c1ecc]
jne case.0x401c83.1027
cmp esi, 0x1b
jne case.0x401c83.1027
mov edx, dword [0x4c1ec8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013d1
cmp eax, 0x113
jne case.0x401c83.1027
cmp dword [esp + 0x30], 0
jne case.0x401c83.1027
mov eax, dword [0x4c1ec8]
cmp dword [esp + 0x24], eax
jne case.0x401c83.1027
cmp dword [0x4c38c8], 0
je 0x401bc3
call fcn.00402c30
cmp dword [0x4c4aa8], 0
je 0x401bda
call fcn.00402aa0
test al, al
je 0x401bda
mov byte [esp + 0xf], 1
cmp dword [ebp + 0xc], 0
je 0x4013d1
cmp dword [ebp + 8], 1
jl 0x4013d1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402a60
add esp, 8
test eax, eax
je 0x4013d1
cmp byte [esp + 0x1e], 0
je 0x401c19
mov byte [0x4c2020], 0
cmp byte [esp + 0x1d], 0
je 0x401c67
dec dword [0x4c2030]
test esi, esi
jle 0x401c67
cmp dword [0x4c2030], 0
jne 0x401c67
cmp dword [0x4c4aa8], 0
jne 0x401c67
cmp dword [0x4c38c8], 0
jne 0x401c67
cmp byte [0x4c201a], 0
je 0x401c67
mov eax, dword [0x4c1ec8]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c67
mov byte [0x4c201a], 0
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffc00
cmp eax, 0x15
ja case.0x401c83.1027
movzx eax, byte [eax + 0x402998]
jmp dword [eax*4 + 0x40298c]
mov edi, dword [esp + 0x24]
test edi, edi
je 0x401d15
cmp edi, dword [0x4c1ec8]
je 0x401d15
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40289d
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fe4]
jne 0x40289d
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 0x40283c
test dx, dx
je 0x401d0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40283c
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ce0
xor eax, eax
jmp 0x402841
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
jmp 0x401d1f
mov edi, dword [esp + 0x24]
add eax, 0xfffffbff
mov dword [esp + 0x48], 0
cmp eax, 0x14
ja case.0x401d3c.1027
movzx ecx, byte [eax + 0x4029c4]
jmp dword [ecx*4 + 0x4029b0]
xor eax, eax
test edx, edx
jle 0x401d5d
mov ecx, dword [0x4c2658]
nop
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], edi
je 0x401d6a
inc eax
cmp eax, edx
jl 0x401d50
mov dword [esp + 0x14], 0
jmp case.0x401c83.1027
mov edi, ebx
mov dword [esp + 0x14], edi
test edi, edi
je case.0x401c83.1027
mov eax, dword [esp + 0x30]
movzx ecx, si
mov edx, esi
shr edx, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x74], edx
cmp ecx, 8
jne 0x401da6
mov dword [esp + 0x20], edx
mov edx, 0x2af8
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
cmp edx, dword [edi + 0x10]
jae 0x401db6
mov eax, dword [edi + 0x18]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
jmp 0x401db8
xor edx, edx
lea eax, [ecx - 5]
mov dword [esp + 0x10], edx
mov dword [esp + 0x58], 0
mov byte [esp + 0x1b], 0
cmp eax, 4
ja case.default.0x401dd5
jmp dword [eax*4 + 0x4029dc]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013d1
lea ecx, [edi + 0x3a]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
jmp 0x40207e
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013d1
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
lea edx, [edi + 0x38]
mov dword [esp + 0x58], edx
jmp 0x40207e
mov ebx, dword [edi + 0x28]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013d1
mov ecx, dword [ebx + 4]
lea eax, [edi + 0x39]
mov dword [esp + 0x58], eax
mov al, byte [ecx]
jmp 0x40207e
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013d1
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
jmp 0x40207e
mov ebx, dword [edi + 0x30]
mov esi, dword [edi + 0x68]
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x401e84
test esi, esi
je 0x4013d1
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x401ee1
test esi, esi
je 0x4013d1
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013d1
test edx, edx
je 0x4013d1
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x54], ebx
test ebx, ebx
jne 0x401ec8
test byte [edx + 5], 1
je 0x4013d1
mov eax, edi
call fcn.004629f0
jmp 0x4013d1
test byte [edx + 5], 4
jne 0x4013d1
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov byte [esp + 0x1b], 1
jmp 0x40207e
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x2c]
mov al, byte [ecx]
jmp 0x40207e
mov edx, dword [esp + 0x30]
mov eax, 0x4c4040
call fcn.00401280
mov dword [esp + 0x60], eax
test eax, eax
je 0x4013d1
mov edx, eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4013d1
mov eax, dword [eax + 4]
mov al, byte [eax]
jmp 0x40207a
cmp esi, dword [0x4c38d0]
jae 0x4013d1
mov ecx, dword [0x4c38cc]
mov esi, dword [ecx + esi*4]
mov bl, byte [esi + 0x24]
mov dword [esp + 0x6c], esi
test bl, bl
je 0x401f79
mov eax, dword [esi]
test eax, eax
je 0x401f4a
mov eax, dword [eax]
jmp 0x401f4f
mov eax, 0x4a6b2c
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
call fcn.00409380
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
je 0x4013d1
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401f81
cmp al, 3
je 0x401f81
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.0040c380
mov ecx, dword [esi + 8]
cmp word [ecx], 0
jne 0x4013d1
cmp byte [esi + 0x2f], 0
je 0x401fb7
movsx dx, byte [esp + 0x30]
mov word [0x4c4ac0], dx
mov ecx, dword [esi]
mov esi, dword [esp + 0x2c]
jmp 0x402075
xor eax, eax
mov word [0x4c4ac0], ax
mov ecx, dword [esi]
mov esi, dword [esp + 0x2c]
jmp 0x402075
mov eax, dword [0x4c4a90]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
jmp 0x40207a
mov ecx, dword [0x4bf634]
mov eax, esi
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4013d1
movzx edx, ax
mov edx, dword [edx*4 + 0x4c2918]
mov eax, esi
shr eax, 0x10
mov dword [esp + 0x70], edx
test ax, ax
je 0x402035
mov ecx, dword [edx + 0x20]
add eax, 0xffff
mov dword [esp + 0x40], ecx
test ax, ax
je 0x402031
jmp 0x402020
mov ecx, dword [ecx + 0x14]
add eax, 0xffff
test ax, ax
jne 0x402020
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x402051
push edx
lea eax, [esp + 0x48]
call fcn.00409d30
mov ecx, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4013d1
mov esi, dword [esp + 0x2c]
mov al, byte [ecx + 0x1e]
cmp al, 2
je 0x40206b
cmp al, 4
je 0x40206b
cmp al, 5
jne 0x402073
mov eax, dword [0x4c2050]
mov dword [esp + 0x44], eax
jmp 0x402073
mov dword [esp + 0x44], 0
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
mov al, byte [edx]
mov edi, dword [esp + 0x14]
mov ecx, dword [0x4c2034]
mov edx, dword [0x4be3e0]
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x5c], al
cmp ecx, edx
jl 0x4020e3
add edx, 2
cmp ecx, edx
jge 0x4020bd
cmp al, 0xdd
je 0x4020e3
cmp al, 0xc9
je 0x4020e3
cmp al, 0xd7
je 0x4020e3
cmp al, 0xd8
je 0x4020e3
cmp al, 0xd3
je 0x4020e3
cmp al, 0xd4
je 0x4020e3
cmp al, 0xd5
je 0x4020e3
cmp al, 0xd6
je 0x4020e3
cmp dword [esp + 0x48], 0
je 0x4013d1
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x68], 0
jmp 0x4013d1
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4020fc.1027
movzx edx, byte [eax + 0x402a04]
jmp dword [edx*4 + 0x4029f0]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x402118
cmp byte [eax], 0
jne 0x4013d1
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x4021cd
mov eax, dword [esp + 0x60]
mov ebx, dword [eax + 0x18]
test esi, esi
je 0x402159
call fcn.00459e90
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4021cd
cmp dword [esp + 0x24], eax
je 0x4021cd
mov ecx, dword [0x4c1ec8]
cmp dword [esp + 0x24], ecx
jne case.0x401c83.1027
jmp 0x4021cd
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x4021cd
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x14]
jmp 0x4021cd
cmp byte [0x4c4a8c], 0
jne 0x4013d1
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x4021cd
mov al, byte [ebx + 0x1f]
cmp al, byte [ebx + 0x20]
jb 0x4021c6
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov al, byte [edx]
cmp al, 0xdd
je 0x4021c6
cmp al, 0xc9
je 0x4021c6
cmp al, 0xd7
je 0x4021c6
cmp al, 0xd8
je 0x4021c6
cmp al, 0xd3
je 0x4021c6
cmp al, 0xd4
je 0x4021c6
cmp al, 0xd5
je 0x4021c6
cmp al, 0xd6
je 0x4021c6
cmp byte [ebx + 0x23], 0
je 0x4021b8
mov byte [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 4], eax
jmp 0x4013d1
mov eax, dword [esp + 0x40]
mov ebx, dword [eax + 0x18]
mov ecx, dword [0x4be40c]
cmp ebx, dword [ecx + 0x2c]
jge 0x4021f7
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4013d1
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013d1
mov eax, dword [esp + 0x28]
mov byte [esp + 0xf], 1
cmp eax, 0x402
je 0x40226c
cmp eax, 0x413
jbe 0x402219
cmp eax, 0x415
jbe 0x4022af
mov edx, dword [0x4c4a80]
mov ecx, dword [0x4c4ab8]
mov dword [0x4c4a84], edx
mov dword [0x4c4abc], ecx
cmp eax, 0x401
jne 0x402253
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [0x4c4a80], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4ab8], eax
jmp 0x4022af
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov dword [0x4c4a80], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4ab8], eax
jmp 0x4022af
mov esi, dword [esp + 0x60]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x4c466c
call fcn.0048b9c4
xor edx, edx
mov word [0x4c4874], dx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
push ecx
push 0x4c4876
call fcn.0048b9c4
add esp, 0xc
xor edx, edx
mov word [0x4c4a7e], dx
mov esi, dword [0x4c26cc]
cmp byte [esi + 0x17], 0
jne 0x4022be
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4022cb
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4022e4
test byte [esi + 0x15], 4
je 0x4022df
mov eax, esi
call fcn.0042fcf0
mov eax, dword [esi + 8]
jmp 0x4022f4
cmp al, 2
jne 0x4022ef
call fcn.00401000
jmp 0x4022f4
mov eax, 0x4c3fd0
push 0x7f
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.0048b9c4
mov edx, dword [esp + 0x68]
add esp, 0xc
xor ecx, ecx
push edx
push ecx
push ebx
mov al, 1
mov word [esp + 0x1fa], cx
call fcn.00403060
mov ebx, dword [0x4be40c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4afc], eax
mov dword [0x4c4af8], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402351.1027
movzx eax, byte [eax + 0x402a30]
jmp dword [eax*4 + 0x402a1c]
xor ecx, ecx
mov word [esp + 0x90], cx
mov ecx, dword [esp + 0x4c]
lea eax, [ecx - 5]
cmp eax, 4
ja case.default.0x402372
jmp dword [eax*4 + 0x402a48]
mov esi, dword [esp + 0x10]
xor edx, edx
cmp dword [esp + 0x20], edx
lea edi, [ebx + 0x3c]
sete dl
mov dword [esp + 0x20], 0
lea edx, [edx + edx + 1]
mov dword [ebx + 0x34], edx
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
test esi, esi
je 0x40243d
cmp edx, 1
jne 0x4023b8
push edi
call fcn.00466430
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402426
dec eax
je 0x402418
dec eax
jne 0x40243d
cmp dword [ebx + 0x34], 1
jne 0x4023e0
mov edx, dword [esi]
push eax
push 9
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402439
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
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 0x402439
mov eax, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
jmp 0x402432
mov ecx, dword [esi]
push 0
push 0
push 0x19f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov esi, edi
call fcn.00471410
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4025d9
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x34], eax
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.00471410
mov eax, dword [edi + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [edi + 4]
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
jmp 0x4025d9
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025e2
mov edx, dword [esp + 0x78]
mov dword [ebx + 0x3c], edx
mov ecx, dword [esp + 0x20]
mov eax, dword [0x4c26cc]
push 0x18
push 0
push ecx
call fcn.004010e0
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xc0], edx
add dword [edi + 0x20], 2
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x38], ecx
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x402699
mov byte [ebx], 1
jmp 0x4026a4
mov esi, dword [esp + 0x10]
mov al, byte [esi + 4]
cmp al, 0xa
je 0x40253b
cmp al, 0x17
jne 0x4025d6
mov eax, dword [esp + 0x38]
lea esi, [ebx + 0x3c]
mov dword [esi], eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
call fcn.00471410
mov esi, dword [esp + 0x10]
jmp 0x4025d2
cmp cl, 0x49
jne 0x4025d6
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x402562
mov edx, 0x53
mov word [esp + 0x90], dx
jmp 0x402577
test ecx, 0x200
je 0x40257e
mov eax, 0x73
mov word [esp + 0x90], ax
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x40258d
mov edx, 0x46
jmp 0x40259a
test ecx, 0x800
je 0x4025a0
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x4025b2
mov ecx, 0x43
mov word [eax], cx
jmp 0x4025c2
test ecx, 0x2000
je 0x4025c5
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x4c], 0x49
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0x34], ecx
cmp ecx, 8
je 0x4024bf
cmp ecx, 5
je 0x4024bf
test esi, esi
je 0x40267b
cmp byte [esi + 4], 0x16
jne 0x40267b
push 0x10b8
lea edx, [esp + 0x1f4]
push 0
push edx
call fcn.00491b20
mov eax, dword [esp + 0x2c]
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 0x4024d2
cmp word [esp + 0x260], 0
lea eax, [esp + 0x260]
jne 0x402664
lea eax, [esp + 0x200]
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472b80
jmp 0x4024d2
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x9c]
push eax
call fcn.00472b80
jmp 0x4024d2
cmp byte [esp + 0x1b], 0
je 0x4026a4
or byte [esi + 5], 4
mov ecx, dword [esp + 0x54]
call fcn.00401240
cmp dword [edi + 4], 0
je 0x4026f9
test ebx, ebx
je 0x4026bc
mov byte [ebx], 0
jmp 0x4026c7
cmp byte [esp + 0x1b], 0
je 0x4026c7
and byte [esi + 5], 0xfb
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4026f9
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [edi + 4]
push 0xffffffffffffffec
push edx
mov dword [edi + 0x68], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x10
push eax
mov eax, dword [edi + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, edi
call fcn.0045bea0
jmp 0x4027f6
test edi, edi
je 0x402723
mov ecx, dword [edi + 4]
mov dword [ebx + 0xc0], ecx
mov dword [ebx + 0x34], 1
add dword [edi + 0x20], 2
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x44], edi
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0xc]
call fcn.00401240
test edi, edi
je 0x4027f6
mov esi, edi
call fcn.0045bea0
jmp 0x4027f6
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x6c]
mov dword [ebx + 0xc0], eax
mov cl, byte [esi + 0x25]
mov byte [ebx + 0xf2], cl
call fcn.0040c2f0
jmp 0x4027f6
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x402792
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x40278b
push 0xf
call esi
test eax, eax
jne 0x40278b
mov eax, 2
jmp 0x402794
mov eax, 1
jmp 0x402794
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c26cc]
call fcn.004010e0
mov ecx, dword [0x4c4a90]
mov byte [0x4c4a8c], 1
call fcn.00401240
mov byte [0x4c4a8c], 0
jmp 0x4027f6
mov esi, dword [esp + 0x70]
mov al, byte [esi + 0x12]
cmp al, 0x9c
jb 0x4027d7
cmp al, 0x9f
ja 0x4027d7
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x44]
mov dword [ebx + 0xc0], eax
mov eax, dword [esp + 0x40]
mov cl, byte [eax + 0x21]
mov byte [ebx + 0xf2], cl
push esi
mov ebx, eax
call fcn.0040a0a0
lea edx, [esp + 0xf0]
push edx
call fcn.00403160
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4013d1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.00402a60
add esp, 8
test eax, eax
je 0x4013d1
mov byte [esp + 0x1c], 1
mov byte [esp + 0x50], 1
jmp 0x4013d1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40289d
mov eax, dword [0x4be40c]
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 0x402890
cmp dword [0x4c2060], 0
je 0x40287f
push 0x4c26d0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4be40c]
mov byte [eax + 0xe4], 0
jmp 0x4013d1
mov ecx, dword [0x4be40c]
mov byte [ecx + 0xe4], 0
mov eax, dword [0x4c1edc]
test eax, eax
je 0x4028c0
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [0x4c1ec8]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013d1
mov eax, dword [0x4be40c]
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 [0x4be40c]
mov byte [ecx + 0xe4], 0
jmp 0x4013d1
cmp esi, 0xffffffff
jle 0x40291c
mov dword [0x4c4ae8], 0
mov dword [0x4c4aec], 0
mov dword [0x4c4af8], eax
cmp byte [esp + 0x1e], 0
mov dword [0x4c4afc], eax
je 0x40292f
mov byte [0x4c2020], 0
cmp byte [esp + 0x1d], 0
je 0x401c67
dec dword [0x4c2030]
test esi, esi
jle 0x401c67
cmp dword [0x4c2030], 0
jne 0x401c67
cmp dword [0x4c4aa8], 0
jne 0x401c67
cmp dword [0x4c38c8], 0
jne 0x401c67
cmp byte [0x4c201a], 0
je 0x401c67
mov edx, dword [0x4c1ec8]
push 9
push edx
jmp 0x401c56