Function at 0x4012b0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Enumerate pe sections
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 + 0x21], 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 + 0x21], 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 + 0x60], 1
mov dword [esp + 0x68], ebx
jmp 0x401359
cmp esi, 5
setle al
mov byte [esp + 0x60], al
test al, al
je 0x40134f
mov dword [esp + 0x68], ebx
jmp 0x401359
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x68], eax
cmp dword [0x4c38a8], ebx
je 0x401366
call fcn.00402b60
mov byte [esp + 0x13], bl
cmp dword [0x4c4a68], ebx
je 0x401380
call fcn.004029d0
test al, al
je 0x401380
mov byte [esp + 0x13], 1
cmp esi, ebx
jle 0x4015d5
cmp edi, 1
jne 0x4015d5
inc dword [0x4c2010]
mov byte [esp + 0x1f], 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 + 0x23], bl
mov byte [esp + 0x20], bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp + 8], 0
mov esi, eax
mov dword [esp + 0x50], esi
jle 0x4015de
cmp byte [esp + 0x20], 0
jne 0x4015de
cmp byte [0x4c2000], 0
jne 0x4015eb
call fcn.00403130
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 0x4013c9
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x401431
mov dword [0x4c4ab8], eax
cmp dword [0x4c2698], 0
je 0x40146b
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.00402bd0
add esp, 0x18
test al, al
jne 0x4013c9
mov edx, dword [0x4c263c]
test edx, edx
je 0x401ad3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401ad3
cmp eax, dword [0x4c1ea8]
mov eax, dword [esp + 0x28]
je 0x401b17
cmp eax, 0x414
je 0x401ad3
cmp eax, 0x402
je 0x401ad3
cmp eax, 0x100
jae 0x4014bd
cmp eax, 0x109
ja 0x401a6a
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x401a70
call fcn.004739a0
mov esi, eax
test esi, esi
je 0x401a70
call fcn.00459360
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x401a70
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x40150b
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013c9
cmp dword [esp + 0x28], 0x100
mov esi, dword [esp + 0x2c]
jne 0x4019fa
cmp byte [ebx + 0xb8], 0
je 0x401885
cmp esi, 0x22
je 0x401547
cmp esi, 0x21
je 0x401547
cmp esi, 9
je 0x401547
cmp esi, 0x25
je 0x401547
cmp esi, 0x27
jne 0x401885
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x401574
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40156b
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x401867
mov eax, dword [ebx + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40186f
mov al, byte [eax + 4]
cmp al, 0xf
je 0x40186f
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp al, 0x13
jne 0x401934
mov ebx, dword [esp + 0x18]
cmp esi, 0x25
je 0x4015b4
cmp esi, 0x27
jne 0x401934
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 + 0x28]
call fcn.00465480
jmp 0x4013c9
mov byte [esp + 0x1f], bl
jmp 0x4013c1
cmp byte [0x4c2000], 0
je 0x401788
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401788
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x401788
cmp dword [0x4c2040], 0
je 0x40166a
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 0x40165c
test dx, dx
je 0x401658
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40165c
add eax, 4
add ecx, 4
test dx, dx
jne 0x401636
xor eax, eax
jmp 0x401661
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4016bf
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401788
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.004881a9
add esp, 8
test eax, eax
je 0x4016bf
lea eax, [esp + 0xb0]
push str.SysListView32
push eax
call fcn.004881a9
add esp, 8
test eax, eax
jne 0x401788
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 0x401704
push 1
call fcn.00403130
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 0x401803
mov esi, dword [esp + 0x34]
push 0
call fcn.00403130
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 0x401745
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
call edi
jmp 0x401803
mov edx, dword [esp + 0x38]
sub edx, esi
test edx, edx
jle 0x401764
push 0x1ff
push 0
push 0
lea eax, [esp + 0x34]
push eax
call edi
jmp 0x401803
call fcn.00403130
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 0x401803
cmp dword [0x4be3c4], 0
je 0x4017e1
cmp dword [0x4c2034], 0
jne 0x4017e1
mov eax, dword [0x4be3fc]
cmp byte [eax + 0xe4], 0
jne 0x4017d8
cmp byte [eax + 0xe6], 0
jne 0x4017d8
cmp dword [eax + 0xd8], 0xffffffff
jle 0x4017d8
call ebx
mov edx, eax
mov eax, dword [0x4be3fc]
sub edx, dword [eax + 0xd4]
cmp edx, dword [eax + 0xd8]
jb 0x4017d8
mov byte [eax + 0xe4], 1
movzx eax, byte [eax + 0xe4]
jmp 0x4017e3
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 0x401431
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x50]
cmp ecx, 3
jbe 0x40181d
mov dword [0x4c4ab8], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40183c
cmp byte [esp + 0x23], 0
jne 0x40183c
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x23], 1
jmp 0x4013c9
call ebx
cmp byte [esp + 0x60], 0
jne 0x402831
mov edx, dword [esp + 0x68]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x402831
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013c9
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x28], 0x100
jne 0x4019fa
mov ebx, dword [esp + 0x14]
cmp esi, 0x1b
je 0x4018ae
cmp esi, 9
je 0x4018ae
cmp esi, 0x41
jne 0x4019fa
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4019f6
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x4018db
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4018d2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x4019ee
mov eax, dword [ebx + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4019f6
cmp byte [eax + 4], 0xc
jne 0x4019f6
mov esi, dword [esp + 0x2c]
cmp esi, 0x1b
je 0x401a44
cmp esi, 0x41
je 0x401a27
test byte [eax + 5], 0x80
je 0x4019fa
mov ecx, dword [eax]
push 0x49b858
push 1
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013c9
cmp esi, 0x25
je 0x401873
cmp esi, 0x27
je 0x401873
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40186f
mov esi, dword [esp + 0x2c]
cmp esi, 9
jne 0x401988
mov edx, dword [esp + 0x18]
cmp byte [edx + 4], 0xc
jne 0x401988
mov eax, edx
mov ecx, dword [eax]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x40186f
mov esi, dword [esp + 0x2c]
test ebx, ebx
jne 0x4019b3
mov edx, dword [esp + 0x18]
mov bl, byte [edx + 6]
mov ecx, dword [esp + 0x14]
call fcn.004651f0
mov ebx, eax
test ebx, ebx
jne 0x4019b3
xor bl, bl
call fcn.004651f0
mov ebx, eax
test ebx, ebx
je 0x401873
cmp esi, 0x22
je 0x4019d3
cmp esi, 9
jne 0x4019cf
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4019d3
xor al, al
jmp 0x4019d8
mov eax, 1
mov edx, dword [esp + 0x14]
push 1
push 1
push eax
push edx
mov eax, ebx
call fcn.00465480
jmp 0x4013c9
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x2c]
mov eax, dword [0x4c3f6c]
test eax, eax
je 0x401a74
cmp dword [esp + 0x28], 0x100
jne 0x401a74
cmp esi, 0xd
jne 0x401a50
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013c9
test byte [eax + 5], 2
jne 0x4019fa
mov edx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013c9
mov eax, ebx
call fcn.00461cb0
jmp 0x4013c9
cmp esi, 0x1b
jne 0x401a74
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4013c9
mov esi, dword [esp + 0x2c]
jmp 0x401a7a
mov esi, dword [esp + 0x2c]
mov edx, dword [0x4c263c]
xor ebx, ebx
test edx, edx
jle 0x401ad7
mov eax, dword [0x4be3fc]
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
jmp 0x401a90
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xdc], ecx
mov eax, dword [0x4c2638]
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 0x4027b2
mov edx, dword [0x4c263c]
mov eax, dword [0x4be3fc]
inc ebx
mov byte [eax + 0xe0], 0
cmp ebx, edx
jl 0x401a90
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp eax, 0x312
ja 0x401c42
je 0x401ceb
cmp eax, 0x100
ja 0x401b60
je 0x401b33
cmp eax, 0x12
je 0x401b1d
cmp eax, 0x4b
jne case.0x401c53.1027
mov dword [0x4c1fe0], 0
mov byte [esp + 0x20], 1
jmp 0x4013c9
mov esi, dword [esp + 0x2c]
jmp 0x401adb
push 0
xor eax, eax
push 0x4c4000
lea ecx, [eax + 6]
call fcn.00415820
jmp 0x4013c9
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x4c1eac]
jne case.0x401c53.1027
cmp esi, 0x1b
jne case.0x401c53.1027
mov edx, dword [0x4c1ea8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4013c9
cmp eax, 0x113
jne case.0x401c53.1027
cmp dword [esp + 0x30], 0
jne case.0x401c53.1027
mov eax, dword [0x4c1ea8]
cmp dword [esp + 0x24], eax
jne case.0x401c53.1027
cmp dword [0x4c38a8], 0
je 0x401b93
call fcn.00402b60
cmp dword [0x4c4a68], 0
je 0x401baa
call fcn.004029d0
test al, al
je 0x401baa
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x4013c9
cmp dword [ebp + 8], 1
jl 0x4013c9
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402990
add esp, 8
test eax, eax
je 0x4013c9
cmp byte [esp + 0x21], 0
je 0x401be9
mov byte [0x4c2000], 0
cmp byte [esp + 0x1f], 0
je 0x401c37
dec dword [0x4c2010]
test esi, esi
jle 0x401c37
cmp dword [0x4c2010], 0
jne 0x401c37
cmp dword [0x4c4a68], 0
jne 0x401c37
cmp dword [0x4c38a8], 0
jne 0x401c37
cmp byte [0x4c1ffa], 0
je 0x401c37
mov eax, dword [0x4c1ea8]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401c37
mov byte [0x4c1ffa], 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.0x401c53.1027
movzx eax, byte [eax + 0x4028cc]
jmp dword [eax*4 + 0x4028c0]
mov edi, dword [esp + 0x24]
test edi, edi
je 0x401ce5
cmp edi, dword [0x4c1ea8]
je 0x401ce5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4027d0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fc0]
jne 0x4027d0
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 0x40276f
test dx, dx
je 0x401cda
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40276f
add eax, 4
add ecx, 4
test dx, dx
jne 0x401cb0
xor eax, eax
jmp 0x402774
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
jmp 0x401cef
mov edi, dword [esp + 0x24]
add eax, 0xfffffbff
mov dword [esp + 0x50], 0
cmp eax, 0x14
ja case.0x401d0c.1027
movzx ecx, byte [eax + 0x4028f8]
jmp dword [ecx*4 + 0x4028e4]
xor eax, eax
test edx, edx
jle 0x401d2d
mov ecx, dword [0x4c2638]
nop
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 4], edi
je 0x401d3a
inc eax
cmp eax, edx
jl 0x401d20
mov dword [esp + 0x14], 0
jmp case.0x401c53.1027
mov edi, ebx
mov dword [esp + 0x14], edi
test edi, edi
je case.0x401c53.1027
mov eax, dword [esp + 0x30]
movzx ecx, si
mov edx, esi
shr edx, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x74], edx
cmp ecx, 8
jne 0x401d76
mov dword [esp + 0x40], edx
mov edx, 0x2af8
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
cmp edx, dword [edi + 0x10]
jae 0x401d86
mov eax, dword [edi + 0x18]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
jmp 0x401d88
xor edx, edx
lea eax, [ecx - 5]
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], 0
mov byte [esp + 0x22], 0
cmp eax, 4
ja case.default.0x401da5
jmp dword [eax*4 + 0x402910]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013c9
lea ecx, [edi + 0x3a]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
jmp 0x40204e
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013c9
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
lea edx, [edi + 0x38]
mov dword [esp + 0x58], edx
jmp 0x40204e
mov ebx, dword [edi + 0x28]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013c9
mov ecx, dword [ebx + 4]
lea eax, [edi + 0x39]
mov dword [esp + 0x58], eax
mov al, byte [ecx]
jmp 0x40204e
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x4013c9
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
jmp 0x40204e
mov ebx, dword [edi + 0x30]
mov esi, dword [edi + 0x68]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x401e54
test esi, esi
je 0x4013c9
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x401eb1
test esi, esi
je 0x4013c9
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013c9
test edx, edx
je 0x4013c9
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x54], ebx
test ebx, ebx
jne 0x401e98
test byte [edx + 5], 1
je 0x4013c9
mov eax, edi
call fcn.00461c50
jmp 0x4013c9
test byte [edx + 5], 4
jne 0x4013c9
mov ecx, dword [ebx + 4]
mov al, byte [ecx]
mov byte [esp + 0x22], 1
jmp 0x40204e
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x2c]
mov al, byte [ecx]
jmp 0x40204e
mov edx, dword [esp + 0x30]
mov eax, 0x4c4000
call fcn.00401280
mov dword [esp + 0x64], eax
test eax, eax
je 0x4013c9
mov edx, eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4013c9
mov eax, dword [eax + 4]
mov al, byte [eax]
jmp 0x40204a
cmp esi, dword [0x4c38b0]
jae 0x4013c9
mov ecx, dword [0x4c38ac]
mov esi, dword [ecx + esi*4]
mov bl, byte [esi + 0x24]
mov dword [esp + 0x6c], esi
test bl, bl
je 0x401f49
mov eax, dword [esi]
test eax, eax
je 0x401f1a
mov eax, dword [eax]
jmp 0x401f1f
mov eax, 0x4a59a4
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
push edx
call fcn.00409180
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x4013c9
mov al, byte [esi + 0x24]
cmp al, 1
je 0x401f51
cmp al, 3
je 0x401f51
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x30]
push eax
mov ebx, esi
call fcn.0040c110
mov ecx, dword [esi + 8]
cmp word [ecx], 0
jne 0x4013c9
cmp byte [esi + 0x2e], 0
je 0x401f88
movsx dx, byte [esp + 0x30]
mov word [0x4c4a80], dx
mov ecx, dword [esi]
mov esi, dword [esp + 0x2c]
jmp 0x402045
xor eax, eax
mov word [0x4c4a80], ax
mov ecx, dword [esi]
mov esi, dword [esp + 0x2c]
jmp 0x402045
mov eax, dword [0x4c4a50]
mov ecx, dword [eax + 4]
mov al, byte [ecx]
jmp 0x40204a
mov ecx, dword [0x4bf608]
mov eax, esi
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4013c9
movzx edx, ax
mov edx, dword [edx*4 + 0x4c28f8]
mov eax, esi
shr eax, 0x10
mov dword [esp + 0x70], edx
test ax, ax
je 0x402005
mov ecx, dword [edx + 0x20]
add eax, 0xffff
mov dword [esp + 0x44], ecx
test ax, ax
je 0x402001
lea esp, [esp]
mov ecx, dword [ecx + 0x14]
add eax, 0xffff
test ax, ax
jne 0x401ff0
mov dword [esp + 0x44], ecx
test ecx, ecx
jne 0x402021
push edx
lea eax, [esp + 0x4c]
call fcn.00409b20
mov ecx, eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x4013c9
mov esi, dword [esp + 0x2c]
mov al, byte [ecx + 0x1e]
cmp al, 2
je 0x40203b
cmp al, 4
je 0x40203b
cmp al, 5
jne 0x402043
mov eax, dword [0x4c2030]
mov dword [esp + 0x48], eax
jmp 0x402043
mov dword [esp + 0x48], 0
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
mov al, byte [edx]
mov edi, dword [esp + 0x14]
mov ecx, dword [0x4c2014]
mov edx, dword [0x4be3d0]
mov ebx, dword [esp + 0x44]
mov byte [esp + 0x5c], al
cmp ecx, edx
jl 0x4020b3
add edx, 2
cmp ecx, edx
jge 0x40208d
cmp al, 0xdb
je 0x4020b3
cmp al, 0xc7
je 0x4020b3
cmp al, 0xd5
je 0x4020b3
cmp al, 0xd6
je 0x4020b3
cmp al, 0xd1
je 0x4020b3
cmp al, 0xd2
je 0x4020b3
cmp al, 0xd3
je 0x4020b3
cmp al, 0xd4
je 0x4020b3
cmp dword [esp + 0x50], 0
je 0x4013c9
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x68], 0
jmp 0x4013c9
mov eax, dword [esp + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4020cc.1027
movzx edx, byte [eax + 0x402938]
jmp dword [edx*4 + 0x402924]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4020e8
cmp byte [eax], 0
jne 0x4013c9
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x40219d
mov eax, dword [esp + 0x64]
mov ebx, dword [eax + 0x18]
test esi, esi
je 0x402129
call fcn.00459360
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40219d
cmp dword [esp + 0x24], eax
je 0x40219d
mov ecx, dword [0x4c1ea8]
cmp dword [esp + 0x24], ecx
jne case.0x401c53.1027
jmp 0x40219d
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x40219d
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x14]
jmp 0x40219d
cmp byte [0x4c4a4c], 0
jne 0x4013c9
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x40219d
mov al, byte [ebx + 0x1f]
cmp al, byte [ebx + 0x20]
jb 0x402196
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov al, byte [edx]
cmp al, 0xdb
je 0x402196
cmp al, 0xc7
je 0x402196
cmp al, 0xd5
je 0x402196
cmp al, 0xd6
je 0x402196
cmp al, 0xd1
je 0x402196
cmp al, 0xd2
je 0x402196
cmp al, 0xd3
je 0x402196
cmp al, 0xd4
je 0x402196
cmp byte [ebx + 0x22], 0
je 0x402188
mov byte [ebx + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 4], eax
jmp 0x4013c9
mov eax, dword [esp + 0x44]
mov ebx, dword [eax + 0x18]
mov ecx, dword [0x4be3fc]
cmp ebx, dword [ecx + 0x2c]
jge 0x4021c7
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4013c9
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [edi + 0x68], 0
jmp 0x4013c9
mov eax, dword [esp + 0x28]
mov byte [esp + 0x13], 1
cmp eax, 0x402
je 0x40223c
cmp eax, 0x413
jbe 0x4021e9
cmp eax, 0x415
jbe 0x40227f
mov edx, dword [0x4c4a40]
mov ecx, dword [0x4c4a78]
mov dword [0x4c4a44], edx
mov dword [0x4c4a7c], ecx
cmp eax, 0x401
jne 0x402223
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 0x40227f
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 0x40227f
mov esi, dword [esp + 0x64]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x4c462c
call fcn.0048ac34
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.0048ac34
add esp, 0xc
xor edx, edx
mov word [0x4c4a3e], dx
mov esi, dword [0x4c26a8]
cmp byte [esi + 0x17], 0
jne 0x40228e
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x40229b
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4022b4
test byte [esi + 0x15], 4
je 0x4022af
mov eax, esi
call fcn.0042f5b0
mov eax, dword [esi + 8]
jmp 0x4022c4
cmp al, 2
jne 0x4022bf
call fcn.00401000
jmp 0x4022c4
mov eax, 0x4c3fa8
push 0x7f
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.0048ac34
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.00402f90
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 + 0x28]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x402321.1027
movzx eax, byte [eax + 0x402964]
jmp dword [eax*4 + 0x402950]
xor ecx, ecx
mov word [esp + 0x90], cx
mov ecx, dword [esp + 0x4c]
lea eax, [ecx - 5]
cmp eax, 4
ja case.default.0x402342
jmp dword [eax*4 + 0x40297c]
mov esi, dword [esp + 0x18]
xor edx, edx
cmp dword [esp + 0x40], edx
lea edi, [ebx + 0x3c]
sete dl
mov dword [esp + 0x40], 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 0x40240d
cmp edx, 1
jne 0x402388
push edi
call fcn.004655e0
movzx eax, byte [esi + 4]
sub eax, 9
je 0x4023f6
dec eax
je 0x4023e8
dec eax
jne 0x40240d
cmp dword [ebx + 0x34], 1
jne 0x4023b0
mov edx, dword [esi]
push eax
push 9
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402409
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 0x402409
mov eax, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
jmp 0x402402
mov ecx, dword [esi]
push 0
push 0
push 0x19f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov esi, edi
call fcn.00470470
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
jmp 0x4025bb
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.00470470
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 0x4025bb
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4025c4
mov edx, dword [esp + 0x78]
mov dword [ebx + 0x3c], edx
mov eax, dword [esp + 0x40]
push 0x18
push 0
push eax
mov eax, dword [0x4c26a8]
call fcn.004010e0
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
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 0x4025eb
mov byte [esi], 1
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
call fcn.00401240
cmp dword [edi + 4], 0
je 0x402640
test esi, esi
je 0x402603
mov byte [esi], 0
jmp 0x40260e
mov eax, dword [esp + 0x18]
mov al, byte [eax + 4]
cmp al, 0xa
je 0x40251d
cmp al, 0x16
jne 0x4025b8
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.00470470
jmp 0x4025b4
cmp cl, 0x49
jne 0x4025b8
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x402544
mov eax, 0x53
mov word [esp + 0x90], ax
jmp 0x402559
test ecx, 0x200
je 0x402560
mov edx, 0x73
mov word [esp + 0x90], dx
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x40256f
mov edx, 0x46
jmp 0x40257c
test ecx, 0x800
je 0x402582
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x402594
mov ecx, 0x43
mov word [eax], cx
jmp 0x4025a4
test ecx, 0x2000
je 0x4025a7
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 0x402483
cmp ecx, 5
je 0x402483
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x9c]
push edx
call fcn.00471c00
jmp 0x402496
cmp byte [esp + 0x22], 0
je 0x4024c6
mov ebx, dword [esp + 0x18]
or byte [ebx + 5], 4
jmp 0x4024ca
cmp byte [esp + 0x22], 0
je 0x40260e
and byte [ebx + 5], 0xfb
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402640
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.0045b330
jmp 0x402729
test edi, edi
je 0x40266a
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 + 0x64]
mov ecx, dword [ecx + 0xc]
call fcn.00401240
test edi, edi
je 0x402729
mov esi, edi
call fcn.0045b330
jmp 0x402729
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x6c]
mov dword [ebx + 0xc0], edx
call fcn.0040c080
jmp 0x402729
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x4026d0
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4026c9
push 0xf
call esi
test eax, eax
jne 0x4026c9
mov eax, 2
jmp 0x4026d2
mov eax, 1
jmp 0x4026d2
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 0x402729
mov ecx, dword [esp + 0x70]
mov al, byte [ecx + 0x12]
cmp al, 0x9c
jb 0x402715
cmp al, 0x9f
ja 0x402715
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x38], eax
mov edx, dword [esp + 0x48]
mov dword [ebx + 0xc0], edx
mov ebx, dword [esp + 0x44]
push ecx
call fcn.00409e50
lea eax, [esp + 0xf0]
push eax
call fcn.00403090
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4013c9
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00402990
add esp, 8
test eax, eax
je 0x4013c9
mov byte [esp + 0x20], 1
mov byte [esp + 0x60], 1
jmp 0x4013c9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4027d0
mov eax, dword [0x4be3fc]
lea edx, [esp + 0x24]
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x28]
push edx
push esi
mov dword [eax + 0xdc], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x4027c3
cmp dword [0x4c2040], 0
je 0x4027b2
push 0x4c26b0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4be3fc]
mov byte [eax + 0xe0], 0
jmp 0x4013c9
mov ecx, dword [0x4be3fc]
mov byte [ecx + 0xe0], 0
mov eax, dword [0x4c1ebc]
test eax, eax
je 0x4027f3
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [0x4c1ea8]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4013c9
mov eax, dword [0x4be3fc]
mov byte [eax + 0xe0], 1
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
mov dword [eax + 0xdc], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x4be3fc]
mov byte [ecx + 0xe0], 0
jmp 0x4013c9
cmp esi, 0xffffffff
jle 0x40284f
mov dword [0x4c4aa8], 0
mov dword [0x4c4aac], 0
mov dword [0x4c4ab8], eax
cmp byte [esp + 0x21], 0
mov dword [0x4c4abc], eax
je 0x402862
mov byte [0x4c2000], 0
cmp byte [esp + 0x1f], 0
je 0x401c37
dec dword [0x4c2010]
test esi, esi
jle 0x401c37
cmp dword [0x4c2010], 0
jne 0x401c37
cmp dword [0x4c4a68], 0
jne 0x401c37
cmp dword [0x4c38a8], 0
jne 0x401c37
cmp byte [0x4c1ffa], 0
je 0x401c37
mov edx, dword [0x4c1ea8]
push 9
push edx
jmp 0x401c26