Function at 0x4012b0
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
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x1e], bl
cmp edi, 2
jne 0x4012e9
mov edi, 1
mov dword [ebp + 0xc], edi
cmp byte [0x4c2000], bl
jne 0x4012e9
mov byte [0x4c2000], 1
mov byte [esp + 0x1e], 1
cmp dword [0x4c4b18], ebx
je 0x40131d
cmp dword [0x4c4b08], ebx
je 0x40130b
mov eax, dword [0x4c4b00]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c4b08], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c4b18], ebx
mov dword [0x4c4b00], ebx
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x40133b
mov esi, 0xa
mov dword [ebp + 8], esi
mov byte [esp + 0x50], 1
mov dword [esp + 0x64], ebx
jmp 0x401359
cmp esi, 5
setle al
mov byte [esp + 0x50], al
test al, al
je 0x40134f
mov dword [esp + 0x64], ebx
jmp 0x401359
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x64], eax
cmp dword [0x4c38a8], ebx
je 0x401366
call fcn.00402b90
mov byte [esp + 0xf], bl
cmp dword [0x4c4a68], ebx
je 0x401380
call fcn.00402a00
test al, al
je 0x401380
mov byte [esp + 0xf], 1
cmp esi, ebx
jle 0x4015dd
cmp edi, 1
jne 0x4015dd
inc dword [0x4c2010]
mov byte [esp + 0x1d], 1
cmp byte [0x4c1ffa], bl
jne 0x4013c1
mov ecx, dword [0x4c1ea8]
push ebx
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c1ffa], 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 0x4015e6
cmp byte [esp + 0x1c], 0
jne 0x4015e6
cmp byte [0x4c2000], 0
jne 0x4015f3
call fcn.00403160
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4013cd
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x401435
mov dword [0x4c4ab8], eax
inc dword [esp + 0x68]
cmp dword [0x4c2698], 0
je 0x401473
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.00402c00
add esp, 0x18
test al, al
jne 0x4013cd
mov edx, dword [0x4c263c]
test edx, edx
je 0x401b03
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401b03
cmp eax, dword [0x4c1ea8]
mov eax, dword [esp + 0x24]
je 0x401b47
cmp eax, 0x414
je 0x401b03
cmp eax, 0x402
je 0x401b03
cmp eax, 0x100
jae 0x4014c5
cmp eax, 0x109
ja 0x401a97
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x401a9d
call fcn.00473b00
mov esi, eax
test esi, esi
je 0x401a9d
call fcn.00459420
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x401a9d
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x401513
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013cd
cmp dword [esp + 0x24], 0x100
mov esi, dword [esp + 0x28]
jne 0x401a27
cmp byte [ebx + 0xb8], 0
je 0x4018b2
cmp esi, 0x22
je 0x40154f
cmp esi, 0x21
je 0x40154f
cmp esi, 9
je 0x40154f
cmp esi, 0x25
je 0x40154f
cmp esi, 0x27
jne 0x4018b2
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x40157c
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x401573
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x401894
mov eax, dword [ebx + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40189c
mov al, byte [eax + 4]
cmp al, 0xf
je 0x40189c
mov esi, dword [esp + 0x28]
xor ebx, ebx
cmp al, 0x13
jne 0x401961
mov ebx, dword [esp + 0x14]
cmp esi, 0x25
je 0x4015bc
cmp esi, 0x27
jne 0x401961
mov eax, dword [esp + 0x10]
cmp esi, 0x27
push 0
sete cl
movzx edx, cl
push 0
push edx
push eax
mov eax, dword [esp + 0x24]
call fcn.00465540
jmp 0x4013cd
mov byte [esp + 0x1d], bl
jmp 0x4013c1
cmp byte [0x4c2000], 0
je 0x401792
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401792
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x401792
cmp dword [0x4c2040], 0
je 0x401674
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 0x401666
test dx, dx
je 0x401662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401666
add eax, 4
add ecx, 4
test dx, dx
jne 0x401640
xor eax, eax
jmp 0x40166b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4016c9
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401792
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.00488309
add esp, 8
test eax, eax
je 0x4016c9
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.00488309
add esp, 8
test eax, eax
jne 0x401792
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call edi
test eax, eax
jne 0x40170e
push 1
call fcn.00403160
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea edx, [esp + 0x30]
push edx
call edi
jmp 0x40180d
mov esi, dword [esp + 0x30]
push 0
call fcn.00403160
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea eax, [esp + 0x30]
push eax
call edi
push 1
test eax, eax
jne 0x40174f
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x30]
push ecx
call edi
jmp 0x40180d
mov edx, dword [esp + 0x34]
sub edx, esi
test edx, edx
jle 0x40176e
push 0x1ff
push 0
push 0
lea eax, [esp + 0x30]
push eax
call edi
jmp 0x40180d
call fcn.00403160
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea ecx, [esp + 0x30]
push ecx
call edi
jmp 0x40180d
cmp dword [0x4be3c4], 0
je 0x4017eb
cmp dword [0x4c2034], 0
jne 0x4017eb
mov eax, dword [0x4be3fc]
cmp byte [eax + 0xe4], 0
jne 0x4017e2
cmp byte [eax + 0xe6], 0
jne 0x4017e2
cmp dword [eax + 0xd8], 0xffffffff
jle 0x4017e2
call ebx
mov edx, eax
mov eax, dword [0x4be3fc]
sub edx, dword [eax + 0xd4]
cmp edx, dword [eax + 0xd8]
jb 0x4017e2
mov byte [eax + 0xe4], 1
movzx eax, byte [eax + 0xe4]
jmp 0x4017ed
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 + 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x401435
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x48]
cmp ecx, 3
jbe 0x401827
mov dword [0x4c4ab8], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401846
cmp byte [esp + 0x1f], 0
jne 0x401846
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x1f], 1
jmp 0x4013cd
cmp dword [esp + 0x68], 0
jne 0x401869
cmp byte [esp + 0x50], 0
je 0x401869
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x68], 1
jmp 0x4013cd
call ebx
cmp byte [esp + 0x50], 0
jne 0x402861
mov edx, dword [esp + 0x64]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x402861
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013cd
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], 0x100
jne 0x401a27
mov ebx, dword [esp + 0x10]
cmp esi, 0x1b
je 0x4018db
cmp esi, 9
je 0x4018db
cmp esi, 0x41
jne 0x401a27
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a23
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x401908
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4018ff
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x401a1b
mov eax, dword [ebx + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a23
cmp byte [eax + 4], 0xc
jne 0x401a23
mov esi, dword [esp + 0x28]
cmp esi, 0x1b
je 0x401a71
cmp esi, 0x41
je 0x401a54
test byte [eax + 5], 0x80
je 0x401a27
mov ecx, dword [eax]
push 0x49b858
push 1
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013cd
cmp esi, 0x25
je 0x4018a0
cmp esi, 0x27
je 0x4018a0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40189c
mov esi, dword [esp + 0x28]
cmp esi, 9
jne 0x4019b5
mov edx, dword [esp + 0x14]
cmp byte [edx + 4], 0xc
jne 0x4019b5
mov eax, edx
mov ecx, dword [eax]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x40189c
mov esi, dword [esp + 0x28]
test ebx, ebx
jne 0x4019e0
mov edx, dword [esp + 0x14]
mov bl, byte [edx + 6]
mov ecx, dword [esp + 0x10]
call fcn.004652b0
mov ebx, eax
test ebx, ebx
jne 0x4019e0
xor bl, bl
call fcn.004652b0
mov ebx, eax
test ebx, ebx
je 0x4018a0
cmp esi, 0x22
je 0x401a00
cmp esi, 9
jne 0x4019fc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a00
xor al, al
jmp 0x401a05
mov eax, 1
mov edx, dword [esp + 0x10]
push 1
push 1
push eax
push edx
mov eax, ebx
call fcn.00465540
jmp 0x4013cd
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x28]
mov eax, dword [0x4c3f6c]
test eax, eax
je 0x401aa1
cmp dword [esp + 0x24], 0x100
jne 0x401aa1
cmp esi, 0xd
jne 0x401a7d
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013cd
test byte [eax + 5], 2
jne 0x401a27
mov edx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013cd
mov eax, ebx
call fcn.00461d70
jmp 0x4013cd
cmp esi, 0x1b
jne 0x401aa1
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013cd
mov esi, dword [esp + 0x28]
jmp 0x401aa7
mov esi, dword [esp + 0x28]
mov edx, dword [0x4c263c]
xor ebx, ebx
test edx, edx
jle 0x401b07
mov eax, dword [0x4be3fc]
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
jmp 0x401ac0
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xdc], ecx
mov eax, dword [0x4c2638]
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 4]
push edx
call esi
test eax, eax
jne 0x4027e2
mov edx, dword [0x4c263c]
mov eax, dword [0x4be3fc]
inc ebx
mov byte [eax + 0xe0], 0
cmp ebx, edx
jl 0x401ac0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
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 [0x4c1fe0], 0
mov byte [esp + 0x1c], 1
jmp 0x4013cd
mov esi, dword [esp + 0x28]
jmp 0x401b0b
push 0
xor eax, eax
push 0x4c4000
lea ecx, [eax + 6]
call fcn.00415810
jmp 0x4013cd
mov ecx, dword [esp + 0x20]
cmp ecx, dword [0x4c1eac]
jne case.0x401c83.1027
cmp esi, 0x1b
jne case.0x401c83.1027
mov edx, dword [0x4c1ea8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013cd
cmp eax, 0x113
jne case.0x401c83.1027
cmp dword [esp + 0x2c], 0
jne case.0x401c83.1027
mov eax, dword [0x4c1ea8]
cmp dword [esp + 0x20], eax
jne case.0x401c83.1027
cmp dword [0x4c38a8], 0
je 0x401bc3
call fcn.00402b90
cmp dword [0x4c4a68], 0
je 0x401bda
call fcn.00402a00
test al, al
je 0x401bda
mov byte [esp + 0xf], 1
cmp dword [ebp + 0xc], 0
je 0x4013cd
cmp dword [ebp + 8], 1
jl 0x4013cd
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.004029c0
add esp, 8
test eax, eax
je 0x4013cd
cmp byte [esp + 0x1e], 0
je 0x401c19
mov byte [0x4c2000], 0
cmp byte [esp + 0x1d], 0
je 0x401c67
dec dword [0x4c2010]
test esi, esi
jle 0x401c67
cmp dword [0x4c2010], 0
jne 0x401c67
cmp dword [0x4c4a68], 0
jne 0x401c67
cmp dword [0x4c38a8], 0
jne 0x401c67
cmp byte [0x4c1ffa], 0
je 0x401c67
mov eax, dword [0x4c1ea8]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c67
mov byte [0x4c1ffa], 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 + 0x4028fc]
jmp dword [eax*4 + 0x4028f0]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x401d15
cmp edi, dword [0x4c1ea8]
je 0x401d15
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x402800
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x402800
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 0x40279f
test dx, dx
je 0x401d0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40279f
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ce0
xor eax, eax
jmp 0x4027a4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
jmp 0x401d1f
mov edi, dword [esp + 0x20]
add eax, 0xfffffbff
mov dword [esp + 0x48], 0
cmp eax, 0x14
ja case.0x401d3c.1027
movzx ecx, byte [eax + 0x402928]
jmp dword [ecx*4 + 0x402914]
xor eax, eax
test edx, edx
jle 0x401d5d
mov ecx, dword [0x4c2638]
nop
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], edi
je 0x401d6a
inc eax
cmp eax, edx
jl 0x401d50
mov dword [esp + 0x10], 0
jmp case.0x401c83.1027
mov edi, ebx
mov dword [esp + 0x10], edi
test edi, edi
je case.0x401c83.1027
mov eax, dword [esp + 0x2c]
movzx ecx, si
mov edx, esi
shr edx, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x74], edx
cmp ecx, 8
jne 0x401da6
mov dword [esp + 0x3c], 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 + 0x14], edx
mov dword [esp + 0x5c], 0
mov byte [esp + 0x1b], 0
cmp eax, 4
ja case.default.0x401dd5
jmp dword [eax*4 + 0x402940]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013cd
lea ecx, [edi + 0x3a]
mov dword [esp + 0x5c], 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 0x4013cd
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
lea edx, [edi + 0x38]
mov dword [esp + 0x5c], edx
jmp 0x40207e
mov ebx, dword [edi + 0x28]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013cd
mov ecx, dword [ebx + 4]
lea eax, [edi + 0x39]
mov dword [esp + 0x5c], eax
mov al, byte [ecx]
jmp 0x40207e
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013cd
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 0x4013cd
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x401ee1
test esi, esi
je 0x4013cd
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013cd
test edx, edx
je 0x4013cd
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x54], ebx
test ebx, ebx
jne 0x401ec8
test byte [edx + 5], 1
je 0x4013cd
mov eax, edi
call fcn.00461d10
jmp 0x4013cd
test byte [edx + 5], 4
jne 0x4013cd
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 + 0x28]
mov al, byte [ecx]
jmp 0x40207e
mov edx, dword [esp + 0x2c]
mov eax, 0x4c4000
call fcn.00401280
mov dword [esp + 0x60], eax
test eax, eax
je 0x4013cd
mov edx, eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4013cd
mov eax, dword [eax + 4]
mov al, byte [eax]
jmp 0x40207a
cmp esi, dword [0x4c38b0]
jae 0x4013cd
mov ecx, dword [0x4c38ac]
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, 0x4a59a4
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
push edx
call fcn.004091b0
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
je 0x4013cd
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401f81
cmp al, 3
je 0x401f81
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x2c]
push eax
mov ebx, esi
call fcn.0040c140
mov ecx, dword [esi + 8]
cmp word [ecx], 0
jne 0x4013cd
cmp byte [esi + 0x2e], 0
je 0x401fb8
movsx dx, byte [esp + 0x2c]
mov word [0x4c4a80], dx
mov ecx, dword [esi]
mov esi, dword [esp + 0x28]
jmp 0x402075
xor eax, eax
mov word [0x4c4a80], ax
mov ecx, dword [esi]
mov esi, dword [esp + 0x28]
jmp 0x402075
mov eax, dword [0x4c4a50]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
jmp 0x40207a
mov ecx, dword [0x4bf608]
mov eax, esi
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4013cd
movzx edx, ax
mov edx, dword [edx*4 + 0x4c28f8]
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
lea esp, [esp]
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.00409b50
mov ecx, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4013cd
mov esi, dword [esp + 0x28]
mov al, byte [ecx + 0x1e]
cmp al, 2
je 0x40206b
cmp al, 4
je 0x40206b
cmp al, 5
jne 0x402073
mov eax, dword [0x4c2030]
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 + 0x10]
mov ecx, dword [0x4c2014]
mov edx, dword [0x4be3d0]
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x58], al
cmp ecx, edx
jl 0x4020e3
add edx, 2
cmp ecx, edx
jge 0x4020bd
cmp al, 0xdb
je 0x4020e3
cmp al, 0xc7
je 0x4020e3
cmp al, 0xd5
je 0x4020e3
cmp al, 0xd6
je 0x4020e3
cmp al, 0xd1
je 0x4020e3
cmp al, 0xd2
je 0x4020e3
cmp al, 0xd3
je 0x4020e3
cmp al, 0xd4
je 0x4020e3
cmp dword [esp + 0x48], 0
je 0x4013cd
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x68], 0
jmp 0x4013cd
mov eax, dword [esp + 0x24]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4020fc.1027
movzx edx, byte [eax + 0x402968]
jmp dword [edx*4 + 0x402954]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x402118
cmp byte [eax], 0
jne 0x4013cd
mov edi, dword [esp + 0x10]
xor ebx, ebx
jmp 0x4021cd
mov eax, dword [esp + 0x60]
mov ebx, dword [eax + 0x18]
test esi, esi
je 0x402159
call fcn.00459420
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4021cd
cmp dword [esp + 0x20], eax
je 0x4021cd
mov ecx, dword [0x4c1ea8]
cmp dword [esp + 0x20], ecx
jne case.0x401c83.1027
jmp 0x4021cd
xor edi, edi
mov dword [esp + 0x10], edi
jmp 0x4021cd
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x14]
jmp 0x4021cd
cmp byte [0x4c4a4c], 0
jne 0x4013cd
mov edi, dword [esp + 0x10]
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, 0xdb
je 0x4021c6
cmp al, 0xc7
je 0x4021c6
cmp al, 0xd5
je 0x4021c6
cmp al, 0xd6
je 0x4021c6
cmp al, 0xd1
je 0x4021c6
cmp al, 0xd2
je 0x4021c6
cmp al, 0xd3
je 0x4021c6
cmp al, 0xd4
je 0x4021c6
cmp byte [ebx + 0x22], 0
je 0x4021b8
mov byte [ebx + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 4], eax
jmp 0x4013cd
mov eax, dword [esp + 0x40]
mov ebx, dword [eax + 0x18]
mov ecx, dword [0x4be3fc]
cmp ebx, dword [ecx + 0x2c]
jge 0x4021f7
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4013cd
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013cd
mov eax, dword [esp + 0x24]
mov byte [esp + 0xf], 1
cmp eax, 0x402
je 0x40226c
cmp eax, 0x413
jbe 0x402219
cmp eax, 0x415
jbe 0x4022af
mov edx, dword [0x4c4a40]
mov ecx, dword [0x4c4a78]
mov dword [0x4c4a44], edx
mov dword [0x4c4a7c], ecx
cmp eax, 0x401
jne 0x402253
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [0x4c4a40], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4a78], eax
jmp 0x4022af
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov dword [0x4c4a40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4a78], eax
jmp 0x4022af
mov esi, dword [esp + 0x60]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x4c462c
call fcn.0048ad94
xor edx, edx
mov word [0x4c4834], dx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
push ecx
push 0x4c4836
call fcn.0048ad94
add esp, 0xc
xor edx, edx
mov word [0x4c4a3e], dx
mov esi, dword [0x4c26a8]
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.0042f660
mov eax, dword [esi + 8]
jmp 0x4022f4
cmp al, 2
jne 0x4022ef
call fcn.00401000
jmp 0x4022f4
mov eax, 0x4c3fa8
push 0x7f
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.0048ad94
mov edx, dword [esp + 0x64]
add esp, 0xc
xor ecx, ecx
push edx
push ecx
push ebx
mov al, 1
mov word [esp + 0x1fa], cx
call fcn.00402fc0
mov ebx, dword [0x4be3fc]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4abc], eax
mov dword [0x4c4ab8], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402351.1027
movzx eax, byte [eax + 0x402994]
jmp dword [eax*4 + 0x402980]
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 + 0x4029ac]
mov esi, dword [esp + 0x14]
xor edx, edx
cmp dword [esp + 0x3c], edx
lea edi, [ebx + 0x3c]
sete dl
mov dword [esp + 0x3c], 0
lea edx, [edx + edx + 1]
mov dword [ebx + 0x34], edx
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov ecx, dword [esp + 0x38]
mov dword [edi + 4], ecx
test esi, esi
je 0x40243d
cmp edx, 1
jne 0x4023b8
push edi
call fcn.004656a0
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 + 0x34]
mov ecx, dword [esp + 0x38]
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 + 0x3c], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov esi, edi
call fcn.004705d0
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
jmp 0x4025eb
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x34]
lea esi, [ebx + 0x3c]
mov dword [esi], ecx
mov edx, dword [esp + 0x38]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
call fcn.004705d0
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]
jmp 0x4025eb
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025f4
mov edx, dword [esp + 0x78]
mov dword [ebx + 0x3c], edx
mov eax, dword [esp + 0x3c]
push 0x18
push 0
push eax
mov eax, dword [0x4c26a8]
call fcn.004010e0
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
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
test esi, esi
je 0x40261b
mov byte [esi], 1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
call fcn.00401240
cmp dword [edi + 4], 0
je 0x402670
test esi, esi
je 0x402633
mov byte [esi], 0
jmp 0x40263e
mov eax, dword [esp + 0x14]
mov al, byte [eax + 4]
cmp al, 0xa
je 0x40254d
cmp al, 0x16
jne 0x4025e8
mov ecx, dword [esp + 0x34]
lea esi, [ebx + 0x3c]
mov dword [esi], ecx
mov edx, dword [esp + 0x38]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
call fcn.004705d0
jmp 0x4025e4
cmp cl, 0x49
jne 0x4025e8
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x402574
mov eax, 0x53
mov word [esp + 0x90], ax
jmp 0x402589
test ecx, 0x200
je 0x402590
mov edx, 0x73
mov word [esp + 0x90], dx
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x40259f
mov edx, 0x46
jmp 0x4025ac
test ecx, 0x800
je 0x4025b2
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x4025c4
mov ecx, 0x43
mov word [eax], cx
jmp 0x4025d4
test ecx, 0x2000
je 0x4025d7
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 0x4024b3
cmp ecx, 5
je 0x4024b3
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x9c]
push edx
call fcn.00471d60
jmp 0x4024c6
cmp byte [esp + 0x1b], 0
je 0x4024f6
mov ebx, dword [esp + 0x14]
or byte [ebx + 5], 4
jmp 0x4024fa
cmp byte [esp + 0x1b], 0
je 0x40263e
and byte [ebx + 5], 0xfb
mov eax, dword [esp + 0x48]
test eax, eax
je 0x402670
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.0045b3f0
jmp 0x402759
test edi, edi
je 0x40269a
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 + 0x60]
mov ecx, dword [ecx + 0xc]
call fcn.00401240
test edi, edi
je 0x402759
mov esi, edi
call fcn.0045b3f0
jmp 0x402759
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x6c]
mov dword [ebx + 0xc0], edx
call fcn.0040c0b0
jmp 0x402759
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x402700
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4026f9
push 0xf
call esi
test eax, eax
jne 0x4026f9
mov eax, 2
jmp 0x402702
mov eax, 1
jmp 0x402702
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c26a8]
call fcn.004010e0
mov ecx, dword [0x4c4a50]
mov byte [0x4c4a4c], 1
call fcn.00401240
mov byte [0x4c4a4c], 0
jmp 0x402759
mov ecx, dword [esp + 0x70]
mov al, byte [ecx + 0x12]
cmp al, 0x9c
jb 0x402745
cmp al, 0x9f
ja 0x402745
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x38], eax
mov edx, dword [esp + 0x44]
mov dword [ebx + 0xc0], edx
mov ebx, dword [esp + 0x40]
push ecx
call fcn.00409e80
lea eax, [esp + 0xf0]
push eax
call fcn.004030c0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4013cd
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.004029c0
add esp, 8
test eax, eax
je 0x4013cd
mov byte [esp + 0x1c], 1
mov byte [esp + 0x50], 1
jmp 0x4013cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402800
mov eax, dword [0x4be3fc]
lea edx, [esp + 0x20]
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x24]
push edx
push esi
mov dword [eax + 0xdc], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x4027f3
cmp dword [0x4c2040], 0
je 0x4027e2
push 0x4c26b0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4be3fc]
mov byte [eax + 0xe0], 0
jmp 0x4013cd
mov ecx, dword [0x4be3fc]
mov byte [ecx + 0xe0], 0
mov eax, dword [0x4c1ebc]
test eax, eax
je 0x402823
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [0x4c1ea8]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013cd
mov eax, dword [0x4be3fc]
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
mov dword [eax + 0xdc], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x4be3fc]
mov byte [ecx + 0xe0], 0
jmp 0x4013cd
cmp esi, 0xffffffff
jle 0x40287f
mov dword [0x4c4aa8], 0
mov dword [0x4c4aac], 0
mov dword [0x4c4ab8], eax
cmp byte [esp + 0x1e], 0
mov dword [0x4c4abc], eax
je 0x402892
mov byte [0x4c2000], 0
cmp byte [esp + 0x1d], 0
je 0x401c67
dec dword [0x4c2010]
test esi, esi
jle 0x401c67
cmp dword [0x4c2010], 0
jne 0x401c67
cmp dword [0x4c4a68], 0
jne 0x401c67
cmp dword [0x4c38a8], 0
jne 0x401c67
cmp byte [0x4c1ffa], 0
je 0x401c67
mov edx, dword [0x4c1ea8]
push 9
push edx
jmp 0x401c56