Function at 0x401460
Capabilities:
Check for foreground window switch
Check for software breakpoints
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, 0x136c
call fcn.004a7170
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov byte [esp + 0x22], 0
lea ebx, [edi + 1]
jne 0x401499
cmp byte [0x4d8801], 0
mov dword [ebp + 0xc], ebx
jne 0x401499
mov byte [0x4d8801], bl
mov byte [esp + 0x22], bl
cmp dword [0x4d96cc], edi
je 0x4014cd
cmp dword [0x4d96bc], edi
je 0x4014bb
mov eax, dword [0x4d96b4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4d96bc], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4d96cc], edi
mov dword [0x4d96b4], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x4014ed
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x70], edi
jmp 0x40150b
cmp esi, 5
setle al
mov byte [esp + 0x5c], al
test al, al
je 0x401501
mov dword [esp + 0x70], edi
jmp 0x40150b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x70], eax
cmp dword [0x4d8f0c], edi
je 0x401518
call fcn.00403590
mov byte [esp + 0x1b], 0
cmp dword [0x4da17c], edi
je 0x401533
call fcn.00403360
test al, al
je 0x401533
mov byte [esp + 0x1b], 1
cmp esi, edi
jle 0x40176a
cmp dword [ebp + 0xc], ebx
jne 0x40176a
add dword [0x4d8810], ebx
cmp byte [0x4d87df], 0
mov byte [esp + 0x21], 1
jne 0x401575
mov ecx, dword [0x4d86a0]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4d87df], dl
mov byte [esp + 0x53], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x6c], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp + 8], 0
mov esi, eax
mov dword [esp + 0x24], esi
jle 0x401774
cmp byte [esp + 0x23], 0
jne 0x401774
cmp byte [0x4d8801], 0
jne 0x401781
call fcn.00403bc0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x401583
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x4015eb
mov dword [0x4da1d8], eax
inc dword [esp + 0x6c]
cmp dword [0x4d96ac], 0
je 0x401627
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
lea edi, [esp + 0x11c]
call fcn.00403600
add esp, 0x10
test al, al
jne 0x401583
cmp dword [0x4d8e40], 0
mov ebx, dword [esp + 0x34]
je 0x401c8b
test ebx, ebx
je 0x401c8b
cmp ebx, dword [0x4d86a0]
je 0x401c8b
mov eax, dword [esp + 0x38]
cmp eax, 0x414
je 0x401c8b
cmp eax, 0x402
je 0x401c8b
add eax, 0xffffff00
cmp eax, 9
ja 0x401bf2
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x401bf8
call fcn.004843b0
mov edi, eax
test edi, edi
je 0x401bf8
mov eax, esi
call fcn.004661c0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x401bf8
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4016c8
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401583
cmp dword [esp + 0x38], 0x100
mov edi, dword [esp + 0x3c]
jne 0x401bab
cmp byte [esi + 0xb8], 0
je 0x401af9
cmp edi, 0x22
je 0x401704
cmp edi, 0x21
je 0x401704
cmp edi, 9
je 0x401704
cmp edi, 0x25
je 0x401704
cmp edi, 0x27
jne 0x401af9
mov eax, dword [esp + 0x1c]
mov ebx, esi
call fcn.004013e0
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x401ae7
mov al, byte [ebx + 4]
cmp al, 0xf
je 0x401ae7
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], 0
cmp al, 0x13
jne 0x401a15
mov dword [esp + 0x24], ebx
cmp edi, 0x25
je 0x40174e
cmp edi, 0x27
jne 0x401a15
cmp edi, 0x27
sete dl
push 0
movzx eax, dl
push 0
push eax
mov eax, ebx
mov ecx, esi
call fcn.00473440
jmp 0x401583
mov byte [esp + 0x21], 0
jmp 0x401575
cmp byte [0x4d8801], 0
je 0x40190f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40190f
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4d969c]
jne 0x40190f
cmp dword [0x4d8844], 0
je 0x401804
push 0x20
lea edx, [esp + 0x184]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.32770
lea eax, [esp + 0x180]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4017f6
test dx, dx
je 0x4017f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4017f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4017d0
xor eax, eax
jmp 0x4017fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x401859
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x40190f
push 0x20
lea ecx, [esp + 0x184]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0x180]
push str.SysTreeView32
push edx
call fcn.00498d39
add esp, 8
test eax, eax
je 0x401859
lea eax, [esp + 0x180]
push str.SysListView32
push eax
call fcn.00498d39
add esp, 8
test eax, eax
jne 0x40190f
call fcn.00403bc0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
neg eax
push 0
sbb esi, esi
push 0
lea ecx, [esp + 0x44]
and esi, 0xfffffcee
push ecx
add esi, 0x311
call edi
test eax, eax
jne 0x40189f
push 1
push esi
push 0x20e
push eax
lea edx, [esp + 0x44]
push edx
call edi
jmp 0x40198a
mov ebx, dword [esp + 0x44]
push 0
push esi
push 0x20e
push 0
lea eax, [esp + 0x44]
push eax
call edi
push 1
test eax, eax
jne 0x4018d3
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x44]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x40198a
mov edx, dword [esp + 0x48]
sub edx, ebx
test edx, edx
jle 0x4018f8
push 0x1ff
push 0
push 0
lea eax, [esp + 0x44]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x40198a
push esi
push 0x20e
push 0
lea ecx, [esp + 0x44]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x40198a
cmp dword [0x4d4a0c], 0
je 0x401968
cmp dword [0x4d8838], 0
jne 0x401968
mov eax, dword [0x4d4b04]
cmp byte [eax + 0xec], 0
jne 0x40195f
cmp byte [eax + 0xee], 0
jne 0x40195f
cmp dword [eax + 0xe0], 0xffffffff
jle 0x40195f
call ebx
mov edx, eax
mov eax, dword [0x4d4b04]
sub edx, dword [eax + 0xdc]
cmp edx, dword [eax + 0xe0]
jb 0x40195f
mov byte [eax + 0xec], 1
movzx eax, byte [eax + 0xec]
jmp 0x40196a
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 + 0x44]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4015eb
call ebx
mov ecx, eax
sub ecx, dword [esp + 0x24]
cmp ecx, 3
jbe 0x4019a4
mov dword [0x4da1d8], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4019c3
cmp byte [esp + 0x53], 0
jne 0x4019c3
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x53], 1
jmp 0x401583
cmp dword [esp + 0x6c], 0
jne 0x4019ea
cmp byte [esp + 0x5c], 0
je 0x4019ea
test esi, esi
jle 0x4019dd
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x6c], 1
jmp 0x401583
call ebx
cmp byte [esp + 0x5c], 0
jne 0x403189
mov edx, dword [esp + 0x70]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x403189
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401583
cmp edi, 0x25
je 0x401aeb
cmp edi, 0x27
je 0x401aeb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401ae7
mov edi, dword [esp + 0x3c]
cmp edi, 9
jne 0x401a63
cmp byte [ebx + 4], 0xc
jne 0x401a63
mov edx, dword [ebx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x401ae7
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x24], 0
jne 0x401a8b
mov bl, byte [ebx + 6]
mov ecx, esi
call fcn.00473180
mov dword [esp + 0x24], eax
test eax, eax
jne 0x401a8b
xor bl, bl
call fcn.00473180
mov dword [esp + 0x24], eax
test eax, eax
je 0x401aeb
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401ae7
mov eax, dword [esp + 0x3c]
cmp eax, 0x22
je 0x401ad1
cmp eax, 9
jne 0x401abc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401ad1
xor al, al
push 1
push 1
mov ecx, esi
push eax
mov eax, edi
call fcn.00473440
jmp 0x401583
mov eax, 1
push eax
push eax
push eax
mov eax, edi
mov ecx, esi
call fcn.00473440
jmp 0x401583
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x38], 0x100
jne 0x401bab
cmp edi, 0x1b
je 0x401b35
cmp edi, 9
je 0x401b35
cmp edi, 0x41
jne 0x401bab
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov edx, 0x8000
test dx, ax
je 0x401ba7
push 0xa5
call edi
mov ecx, 0x8000
test cx, ax
jne 0x401ba7
mov eax, dword [esp + 0x1c]
mov ebx, esi
call fcn.004013e0
mov dword [esp + 0x14], eax
test eax, eax
je 0x401ba7
mov edx, eax
cmp byte [edx + 4], 0xc
jne 0x401ba7
mov edi, dword [esp + 0x3c]
cmp edi, 0x1b
je 0x401b9b
cmp edi, 0x41
je 0x401b7e
test byte [eax + 5], 0x80
je 0x401bab
mov eax, dword [eax]
push 0x4af960
push 1
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401583
test byte [eax + 5], 2
jne 0x401bab
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401583
mov eax, esi
call fcn.0046fb00
jmp 0x401583
mov edi, dword [esp + 0x3c]
mov eax, dword [0x4d95e4]
test eax, eax
je 0x401bfc
cmp dword [esp + 0x38], 0x100
jne 0x401bfc
cmp edi, 0xd
jne 0x401bd8
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401583
cmp edi, 0x1b
jne 0x401bfc
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401583
mov edi, dword [esp + 0x3c]
jmp 0x401c00
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
xor esi, esi
cmp dword [0x4d8e40], esi
jle 0x401c93
mov eax, dword [0x4d884c]
mov edx, dword [eax + esi*4]
cmp dword [edx + 0x10], 0
jne 0x401c28
cmp ecx, 0x106
je 0x401c6a
mov ecx, dword [0x4d4b04]
mov byte [ecx + 0xe8], 1
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xe4], edx
mov edx, dword [eax + esi*4]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x401c79
mov ecx, dword [0x4d4b04]
mov byte [ecx + 0xe8], al
mov eax, dword [0x4d884c]
mov ecx, dword [esp + 0x38]
inc esi
cmp esi, dword [0x4d8e40]
jl 0x401c17
mov ebx, dword [esp + 0x34]
jmp 0x401c8f
mov edx, dword [0x4d4b04]
mov byte [edx + 0xe8], 0
jmp 0x401583
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp ecx, 0x401
ja 0x401e61
cmp ecx, 0x400
jae 0x401e82
cmp ecx, 0x100
ja 0x401d06
je 0x401ce6
cmp ecx, 0x12
je 0x401cd3
cmp ecx, 0x4b
jne case.0x401e77.1027
mov dword [0x4d87d8], 0
mov byte [esp + 0x23], 1
jmp 0x401583
push 0
push 4
mov ecx, 0x4d96d0
call fcn.0041e790
jmp 0x401583
cmp ebx, dword [0x4d86a4]
jne case.0x401e77.1027
cmp edi, 0x1b
jne case.0x401e77.1027
mov eax, dword [0x4d86a0]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x401583
cmp ecx, 0x113
je 0x401d91
cmp ecx, 0x312
je 0x401e96
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x403128
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4d969c]
jne 0x403128
push 0x20
lea eax, [esp + 0x184]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.32770
lea eax, [esp + 0x180]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4030b7
test dx, dx
je 0x401d8a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4030b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d60
xor eax, eax
jmp 0x4030bc
cmp dword [esp + 0x40], 0
jne case.0x401e77.1027
cmp ebx, dword [0x4d86a0]
jne case.0x401e77.1027
cmp dword [0x4d8f0c], 0
je 0x401db2
call fcn.00403590
cmp dword [0x4da17c], 0
je 0x401dc9
call fcn.00403360
test al, al
je 0x401dc9
mov byte [esp + 0x1b], 1
cmp dword [ebp + 0xc], 0
je 0x401583
cmp dword [ebp + 8], 1
jl 0x401583
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00403320
add esp, 8
test eax, eax
je 0x401583
cmp byte [esp + 0x22], 0
je 0x401e08
mov byte [0x4d8801], 0
cmp byte [esp + 0x21], 0
je 0x401e56
dec dword [0x4d8810]
test esi, esi
jle 0x401e56
cmp dword [0x4d8810], 0
jne 0x401e56
cmp dword [0x4da17c], 0
jne 0x401e56
cmp dword [0x4d8f0c], 0
jne 0x401e56
cmp byte [0x4d87df], 0
je 0x401e56
mov eax, dword [0x4d86a0]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401e56
mov byte [0x4d87df], 0
mov al, byte [esp + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x402]
cmp eax, 0x1c
ja case.0x401e77.1027
movzx eax, byte [eax + 0x403224]
jmp dword [eax*4 + 0x403218]
mov ecx, dword [esp + 0x38]
test ebx, ebx
je 0x401e96
cmp ebx, dword [0x4d86a0]
jne case.0x401e77.1027
mov ecx, dword [esp + 0x38]
xor edx, edx
lea eax, [ecx - 0x401]
mov dword [esp + 0x24], edx
cmp eax, 0x1d
ja case.0x401eb2.1027
movzx ecx, byte [eax + 0x403260]
jmp dword [ecx*4 + 0x403244]
mov esi, ebx
call fcn.00466190
mov dword [esp + 0x10], eax
test eax, eax
je case.0x401e77.1027
mov eax, dword [esp + 0x40]
movzx ecx, di
shr edi, 0x10
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x2c], ebx
cmp ecx, 8
jne 0x401f01
mov dword [esp + 0x74], 0x2af8
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 0x10]
jae 0x401f19
mov esi, dword [eax + 0x18]
lea edx, [edi + edi*4]
lea edx, [esi + edx*4]
mov dword [esp + 0x14], edx
jmp 0x401f1d
mov dword [esp + 0x14], ebx
add ecx, 0xfffffffb
mov dword [esp + 0x68], ebx
mov byte [esp + 0x1a], bl
cmp ecx, 4
ja case.default.0x401f31
jmp dword [ecx*4 + 0x403280]
mov esi, dword [eax + 0x2c]
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x401583
mov eax, dword [esp + 0x10]
add eax, 0x3a
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x401f62
cmp byte [eax], bl
jne 0x401583
xor edi, edi
jmp 0x40234c
mov esi, dword [eax + 0x24]
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x401583
mov ecx, dword [esp + 0x10]
add ecx, 0x38
mov dword [esp + 0x68], ecx
jmp 0x401f52
mov esi, dword [eax + 0x28]
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x401583
mov edx, dword [esp + 0x10]
add edx, 0x39
mov dword [esp + 0x68], edx
jmp 0x401f52
mov esi, dword [eax + 0x34]
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x401583
xor edi, edi
jmp 0x40234c
mov esi, dword [eax + 0x30]
mov edi, dword [eax + 0x68]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x401fea
cmp edi, ebx
je 0x401583
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x401f62
cmp edi, ebx
je 0x401583
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x68], 0
jmp 0x401583
cmp dword [esp + 0x14], ebx
je 0x401583
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40203e
test byte [eax + 5], 1
je 0x401583
mov eax, dword [esp + 0x10]
call fcn.0046faa0
jmp 0x401583
test byte [eax + 5], 4
jne 0x401583
mov byte [esp + 0x1a], 1
xor edi, edi
jmp 0x40234c
cmp edi, edx
je 0x402079
mov esi, edi
call fcn.00466190
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40207d
test ebx, ebx
je 0x40207d
cmp ebx, dword [0x4d86a0]
jne case.0x401e77.1027
jmp 0x40207d
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x40]
mov eax, 0x4d96d0
call fcn.00401430
mov dword [esp + 0x78], eax
test eax, eax
je 0x401583
mov edx, eax
mov esi, dword [edx + 8]
test esi, esi
je 0x401583
mov edi, dword [eax + 0x18]
jmp 0x402348
cmp edi, dword [0x4d8f14]
jae 0x401583
mov ecx, dword [0x4d8f10]
mov edi, dword [ecx + edi*4]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x60], edi
test esi, esi
je 0x402134
mov edx, dword [edi + 4]
push edx
call fcn.0040ef60
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
je 0x401583
mov eax, edi
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 1
je 0x4020fb
cmp al, 3
je 0x4020fb
mov dword [esp + 0x58], 0
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
push edx
push edi
call fcn.00412240
cmp dword [edi + 0xc], 0
jne 0x401583
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x2a], 0
je 0x40213a
mov cx, word [esp + 0x40]
mov word [0x4da194], cx
mov esi, dword [eax]
mov edi, dword [eax + 0x14]
jmp 0x402348
mov dword [esp + 0x58], edx
jmp 0x4020ff
xor edx, edx
mov word [0x4da194], dx
mov esi, dword [eax]
mov edi, dword [eax + 0x14]
jmp 0x402348
cmp byte [0x4da168], dl
jne 0x401583
mov esi, dword [0x4da15c]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x402171
mov esi, dword [0x4d9d08]
mov dword [esp + 0x1c], esi
xor edi, edi
jmp 0x40234c
mov esi, edi
call fcn.0043f290
mov dword [esp + 0x30], eax
test eax, eax
je 0x401583
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x35c]
xor edi, edi
jmp 0x402348
mov eax, dword [0x4d8eac]
mov dword [esp + 0x30], eax
cmp eax, edx
je 0x401583
lea esp, [esp]
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4021c8
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4021b0
jmp 0x401583
test eax, eax
je 0x401583
mov eax, dword [esp + 0x38]
cmp eax, 0x41c
jne 0x4021ea
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov esi, dword [eax + 0x360]
jmp 0x40220d
cmp eax, 0x41e
jne 0x402200
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
mov esi, dword [edx + 0x368]
jmp 0x40220d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x364]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x401583
xor edi, edi
jmp 0x40234c
mov ecx, dword [0x4d5d2c]
mov edx, edi
and edx, 0x7fff
mov eax, edx
cmp ax, word [ecx]
jae 0x401583
movzx edx, ax
mov eax, dword [0x4d8ef0]
mov ecx, dword [eax + edx*4]
shr edi, 0x10
mov eax, edi
mov dword [esp + 0x84], ecx
test ax, ax
je 0x402283
mov edx, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x64], edx
test ax, ax
je 0x40227b
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 8]
add eax, 0xffff
mov dword [esp + 0x64], edx
test ax, ax
jne 0x402266
mov edi, dword [esp + 0x64]
test edi, edi
jne 0x4022ba
cmp dword [esp + 0x38], 0x400
jne 0x40229d
mov edx, dword [esp + 0x40]
shr edx, 0x10
mov eax, 0xffc3d44d
sub eax, edx
jmp 0x40229f
xor eax, eax
push 0
push eax
push ecx
lea eax, [esp + 0x64]
call fcn.0040fb30
mov dword [esp + 0x64], eax
test eax, eax
je 0x401583
mov edi, eax
mov esi, dword [edi]
push esi
call fcn.00479ee0
add esp, 4
sub eax, 0
je 0x4022cd
dec eax
jne 0x4022d8
mov esi, dword [esi + 8]
test esi, esi
je 0x4022d8
mov al, byte [esi]
jmp 0x4022da
xor al, al
mov cl, byte [edi + 0x16]
cmp cl, byte [edi + 0x17]
jb 0x40231a
cmp al, 0xe0
je 0x40231a
cmp al, 0xcc
je 0x40231a
cmp al, 0xda
je 0x40231a
cmp al, 0xdb
je 0x40231a
cmp al, 0xd6
je 0x40231a
cmp al, 0xd7
je 0x40231a
cmp al, 0xd8
je 0x40231a
cmp al, 0xd9
je 0x40231a
cmp byte [edi + 0x1a], 0
je 0x40230c
mov byte [edi + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
jmp 0x401583
mov eax, dword [edi + 4]
test eax, eax
je 0x40233b
mov al, byte [eax]
cmp al, 2
je 0x40233b
cmp al, 4
je 0x40233b
cmp al, 5
jb 0x402343
mov edx, dword [0x4d882c]
mov dword [esp + 0x58], edx
jmp 0x402343
mov dword [esp + 0x58], 0
mov esi, dword [edi]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x1c], esi
push esi
call fcn.00479ee0
xor ebx, ebx
add esp, 4
sub eax, ebx
je 0x40235e
dec eax
jne 0x402369
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x402369
mov al, byte [esi]
jmp 0x40236b
xor al, al
mov ecx, dword [0x4d8814]
mov edx, dword [0x4d4a18]
mov byte [esp + 0x80], al
cmp ecx, edx
jl 0x4023e1
add edx, 2
cmp ecx, edx
jge 0x4023a9
cmp al, 0xe0
je 0x4023e1
cmp al, 0xcc
je 0x4023e1
cmp al, 0xda
je 0x4023e1
cmp al, 0xdb
je 0x4023e1
cmp al, 0xd6
je 0x4023e1
cmp al, 0xd7
je 0x4023e1
cmp al, 0xd8
je 0x4023e1
cmp al, 0xd9
je 0x4023e1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4023bf
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x68], ebx
cmp dword [esp + 0x38], 0x41b
jne 0x401583
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x401583
mov ecx, dword [0x4d4b04]
cmp edi, dword [ecx + 0x2c]
jge 0x402424
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x402402
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x68], ebx
cmp dword [esp + 0x38], 0x41b
jne 0x401583
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x401583
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 0x402]
mov byte [esp + 0x1b], 1
cmp eax, 0x1c
ja case.0x40243f.1027
movzx eax, byte [eax + 0x4032a0]
jmp dword [eax*4 + 0x403294]
mov esi, dword [esp + 0x78]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x4d9d10
call fcn.0049c414
xor edx, edx
mov word [0x4d9f18], dx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
push ecx
push 0x4d9f1a
call fcn.0049c414
add esp, 0xc
xor edx, edx
mov word [0x4da122], dx
mov dword [0x4d9d0c], esi
jmp case.0x40243f.1044
mov eax, dword [0x4da124]
mov edx, dword [0x4da18c]
mov dword [0x4da128], eax
mov dword [0x4da190], edx
cmp ecx, 0x401
jne 0x4024be
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov dword [0x4da124], ecx
jmp 0x4024cd
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x1c]
mov dword [0x4da124], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4da18c], eax
mov esi, dword [0x4d8ea8]
cmp byte [esi + 0x17], bl
jne 0x4024e6
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4024f3
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x402510
test byte [esi + 0x15], 4
je 0x40250b
push esi
mov ecx, 0x4d96d0
call fcn.0043a760
mov eax, dword [esi + 8]
jmp 0x402520
cmp al, 2
jne 0x40251b
call fcn.00401000
jmp 0x402520
mov eax, 0x4d9624
push 0x7f
push eax
lea ecx, [esp + 0x1c8]
push ecx
call fcn.0049c414
mov eax, dword [esp + 0x8c]
add esp, 0xc
push eax
xor edx, edx
push edx
push edi
mov al, 1
mov word [esp + 0x2ca], dx
call fcn.004039e0
mov ebx, dword [0x4d4b04]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4da1dc], eax
mov dword [0x4da1d8], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffbff
cmp eax, 0x1d
ja case.0x402580.1027
movzx ecx, byte [eax + 0x4032e0]
jmp dword [ecx*4 + 0x4032c0]
mov esi, dword [esp + 0x10]
xor edx, edx
mov word [esp + 0xc8], dx
cmp byte [esp + 0x1a], dl
je 0x4025a3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jmp 0x4025a6
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x2c]
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0x110]
mov edx, 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], edx
mov dword [eax + 4], 0
add edi, edx
lea eax, [ecx - 5]
mov dword [esp + 0x2c], edi
cmp eax, 4
ja case.default.0x4025dc
jmp dword [eax*4 + 0x403300]
xor eax, eax
cmp dword [esp + 0x28], eax
mov dword [esp + 0x28], 0
sete al
cmp dword [esp + 0x14], 0
lea eax, [eax + eax + 1]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x3c], ecx
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x40], eax
je 0x4026ce
cmp dword [ebx + 0x34], edx
jne 0x402626
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0x3c]
push eax
call fcn.00473d10
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 4]
sub eax, 9
je 0x4026b3
dec eax
je 0x4026a1
dec eax
jne 0x4026ce
cmp dword [ebx + 0x34], 1
jne 0x40265c
push eax
push 9
mov edx, ecx
mov eax, dword [edx]
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4026ca
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0xe8]
mov dword [esp + 0xe8], ecx
mov ecx, dword [esi]
push eax
push ecx
mov dword [esp + 0xf4], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi]
lea edx, [esp + 0xe8]
push edx
push 0
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4026ca
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push 1
push 0xffffffffffffffff
push 0x100c
push edx
jmp 0x4026c3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push 0
push 0x19f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
lea esi, [ebx + 0x3c]
call fcn.004805d0
mov eax, edi
add eax, eax
cmp dword [esp + 0x14], 0
mov ecx, 1
lea eax, [esp + eax*8 + 0x110]
je 0x40270a
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
add edi, ecx
mov dword [eax + 8], ecx
mov dword [eax], edx
mov dword [eax + 4], 0
jmp 0x402718
inc edi
mov dword [eax + 8], 0
mov dword [eax], 0x4af9bc
mov edx, edi
add edx, edx
mov dword [esp + edx*8 + 0x118], ecx
mov dword [esp + edx*8 + 0x114], 0
lea eax, [esp + edx*8 + 0x110]
mov edx, dword [esp + 0x28]
mov dword [eax], edx
add edi, ecx
mov eax, edi
add eax, eax
lea esi, [esp + eax*8 + 0x110]
xor eax, eax
add edi, ecx
cmp dword [ebx + 0x34], 3
mov dword [esi + 8], ecx
sete al
cdq
mov dword [esi + 4], edx
mov dword [esi], eax
mov eax, dword [ebx + 0x3c]
mov edx, edi
add edx, edx
lea esi, [esp + edx*8 + 0x110]
cdq
mov dword [esi], eax
add edi, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], edx
mov eax, edi
add eax, eax
lea esi, [esp + eax*8 + 0x110]
mov eax, dword [ebx + 0x40]
cdq
mov dword [esi + 8], ecx
add edi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [esp + 0x10]
jmp 0x402ab5
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov ecx, dword [ecx + 4]
call fcn.004805d0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [esp + 0x24]
mov eax, edi
add eax, eax
lea ecx, [esp + eax*8 + 0x110]
push edx
mov dword [esp + 0x30], ecx
call fcn.004684f0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp dword [esp + 0x14], 0
mov dword [ecx + 8], 6
mov dword [ecx], eax
je 0x402836
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
lea eax, [edi + 1]
add eax, eax
lea eax, [esp + eax*8 + 0x110]
mov dword [eax + 8], 1
mov dword [eax], ecx
mov dword [eax + 4], 0
jmp 0x40284f
lea edx, [edi + 1]
add edx, edx
lea eax, [esp + edx*8 + 0x110]
mov dword [eax + 8], 0
mov dword [eax], 0x4af9bc
mov edx, dword [esp + 0x10]
mov esi, dword [esi]
add edi, 2
mov eax, edi
add eax, eax
cmp byte [edx + 0xc0], 0
lea ecx, [esp + eax*8 + 0x110]
mov dword [esp + 0x2c], ecx
je 0x402881
mov eax, dword [0x4d96a0]
push eax
push 0x60
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x402883
mov eax, esi
mov ecx, dword [esp + 0x2c]
cdq
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov eax, dword [ebx + 0x40]
lea ecx, [edi + 1]
add ecx, ecx
add edi, 2
cmp byte [edx + 0xc0], 0
lea esi, [esp + ecx*8 + 0x110]
mov dword [esp + 0x2c], edi
je 0x4028c7
mov ecx, dword [0x4d96a0]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x54]
cdq
mov dword [esi + 8], 1
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [esp + 0x10]
jmp 0x402ab9
mov dword [ebx + 0x34], edx
cmp ecx, 8
jne 0x402ab9
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0x110]
mov dword [ebx + 0x3c], edx
mov dword [eax], esi
mov dword [eax + 8], 1
mov dword [eax + 4], 0
lea eax, [edi + 1]
add eax, eax
lea esi, [esp + eax*8 + 0x110]
movzx eax, dx
mov edx, dword [esp + 0x10]
cmp byte [edx + 0xc0], 0
je 0x402943
mov ecx, dword [0x4d96a0]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x54]
cdq
mov dword [esi + 4], edx
lea edx, [edi + 2]
mov dword [esi], eax
mov eax, dword [esp + 0x7c]
add edx, edx
mov dword [esi + 8], 1
lea esi, [esp + edx*8 + 0x110]
mov edx, dword [esp + 0x10]
add edi, 3
shr eax, 0x10
cmp byte [edx + 0xc0], 0
mov dword [esp + 0x2c], edi
je 0x40298b
mov ecx, dword [0x4d96a0]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x54]
cdq
mov dword [esi + 8], 1
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [esp + 0x10]
jmp 0x402ab9
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
cmp al, 0xa
je 0x4029d9
cmp al, 0x19
jne 0x402a74
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
lea esi, [ebx + 0x3c]
mov dword [esi], eax
mov ecx, dword [esp + 0x4c]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 4]
call fcn.004805d0
mov esi, dword [esp + 0x10]
jmp 0x402a70
cmp cl, 0x49
jne 0x402a74
lea eax, [esp + 0xc8]
test ecx, 0x100
je 0x402a00
mov eax, 0x53
mov word [esp + 0xc8], ax
jmp 0x402a15
test ecx, 0x200
je 0x402a1c
mov edx, 0x73
mov word [esp + 0xc8], dx
lea eax, [esp + 0xca]
test ecx, 0x400
je 0x402a2b
mov edx, 0x46
jmp 0x402a38
test ecx, 0x800
je 0x402a3e
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x402a50
mov ecx, 0x43
mov word [eax], cx
jmp 0x402a60
test ecx, 0x2000
je 0x402a63
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x54], 0x49
mov ecx, dword [esp + 0x54]
mov edx, edi
add edx, edx
mov dword [ebx + 0x34], ecx
lea edx, [esp + edx*8 + 0x110]
mov eax, ecx
mov dword [edx + 8], 0
call fcn.004684d0
mov dword [edx], eax
mov edx, dword [esp + 0x28]
lea eax, [edi + 1]
add eax, eax
lea eax, [esp + eax*8 + 0x110]
add edi, 2
mov dword [eax + 8], 1
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [esp + 0x2c], edi
cmp byte [esp + 0x1a], 0
je 0x402bf3
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0x17
jne 0x402bf3
push 0x10b8
lea ecx, [esp + 0x2c4]
push 0
push ecx
call fcn.004a3c50
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x2c0]
push eax
dec edx
push 0
mov dword [esp + 0x2cc], edx
mov edx, dword [ecx]
push 0x703
push edx
mov dword [esp + 0x2d0], 0xd
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402c57
cmp word [esp + 0x330], 0
lea eax, [esp + 0x330]
jne 0x402b3d
lea eax, [esp + 0x2d0]
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4d8ea8]
push eax
call fcn.004824a0
mov esi, dword [0x4d8ea8]
mov ecx, edi
add ecx, ecx
inc edi
cmp byte [esi + 0x17], 0
lea edx, [esp + ecx*8 + 0x110]
mov dword [esp + 0x90], edx
mov dword [esp + 0x2c], edi
jne 0x402b75
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x402b82
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x402bb6
test byte [esi + 0x15], 4
je 0x402b9a
push esi
mov ecx, 0x4d96d0
call fcn.0043a760
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x10]
mov dword [ecx + 8], 0
mov dword [ecx], eax
jmp 0x402c57
cmp al, 2
jne 0x402bd8
call fcn.00401000
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x10]
mov dword [ecx + 8], 0
mov dword [ecx], eax
jmp 0x402c57
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x10]
mov eax, 0x4d9624
mov dword [ecx + 8], 0
mov dword [ecx], eax
jmp 0x402c57
cmp word [esp + 0xc8], 0
je 0x402c1e
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0x110]
inc edi
lea edx, [esp + 0xc8]
mov dword [esp + 0x2c], edi
mov dword [eax + 8], 0
mov dword [eax], edx
cmp ecx, 8
je 0x402c44
cmp ecx, 5
je 0x402c44
mov ecx, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.004824a0
jmp 0x402c57
mov edx, dword [esp + 0x28]
mov eax, dword [0x4d8ea8]
push 0x18
push 0
push edx
call fcn.004010e0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0xc4], eax
add dword [esi + 0x20], 2
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x38], edx
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x402c85
mov byte [ebx], 1
jmp 0x402c94
cmp byte [esp + 0x1a], 0
je 0x402c94
mov eax, dword [esp + 0x14]
or byte [eax + 5], 4
lea eax, [esp + 0x94]
push eax
push edi
lea ecx, [esp + 0x118]
push ecx
push 0x4af964
lea edx, [esp + 0x2c]
push edx
call fcn.00479e40
cmp dword [esi + 4], 0
je 0x402d57
test ebx, ebx
je 0x402d04
cmp dword [esp + 0x54], 6
mov byte [ebx], 0
jne 0x402d13
cmp dword [esp + 0x94], 0
jne 0x402d57
mov edi, dword [esp + 0x1c]
push edi
call fcn.00479ee0
add esp, 4
test eax, eax
jne 0x402cef
test edi, edi
jne 0x402d57
mov eax, esi
call fcn.0046faa0
mov esi, dword [esp + 0x10]
call fcn.00468310
jmp 0x403071
cmp byte [esp + 0x1a], 0
je 0x402d13
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
cmp dword [esp + 0x54], 5
jne 0x402d57
mov eax, dword [esp + 0x120]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
mov dword [esi + 0x68], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 4]
or eax, 0x10
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [esp + 0x10]
call fcn.00468310
jmp 0x403071
mov edi, dword [esp + 0x10]
xor esi, esi
cmp edi, esi
je 0x402d89
mov eax, dword [edi + 4]
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0x34], 1
add dword [edi + 0x20], 2
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x44], edi
mov eax, 0x4d96d0
mov dword [esp + 0xa0], esi
mov dword [esp + 0x98], 0x4d9d10
call fcn.004503f0
push esi
xor ecx, ecx
push 3
mov dword [esp + 0xb4], ecx
lea ecx, [esp + 0xa0]
push ecx
push str.Menu
lea edx, [esp + 0x2c]
inc eax
push edx
mov dword [esp + 0xc4], 1
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd4], esi
mov dword [esp + 0xcc], 0x4d9f1a
call fcn.00479e40
cmp edi, esi
je 0x403071
mov esi, dword [esp + 0x10]
call fcn.00468310
jmp 0x403071
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
mov dword [ebx + 0xc4], eax
mov cl, byte [esi + 0x21]
mov byte [ebx + 0xf6], cl
call fcn.004121c0
jmp 0x403071
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x402e52
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x402e4b
push 0xf
call esi
test eax, eax
jne 0x402e4b
mov eax, 2
jmp 0x402e54
mov eax, 1
jmp 0x402e54
xor eax, eax
push 0x18
xor esi, esi
push esi
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4d8ea8]
call fcn.004010e0
mov edx, dword [ebx + 0x38]
mov eax, dword [0x4d963c]
mov dword [esp + 0x100], 1
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], esi
mov byte [0x4da168], 1
cmp eax, dword [0x4d9640]
jne 0x402ea1
call fcn.004054d3
mov eax, dword [0x4d963c]
cmp eax, dword [0x4d9638]
jb 0x402eb6
mov ecx, dword [0x4d9d04]
mov dword [eax], ecx
mov eax, dword [0x4d963c]
add eax, 0xc
mov dword [0x4d963c], eax
mov dword [eax], esi
mov dword [eax + 4], 0x4af96c
mov dword [eax + 8], esi
mov ecx, dword [0x4da15c]
cmp ecx, esi
je 0x402edf
call fcn.004012a0
mov ecx, dword [0x4da15c]
cmp dword [esp + 0x3c], esi
jne 0x402f01
xor edx, edx
cmp ecx, esi
sete dl
lea eax, [esp + 0xf8]
mov ebx, 0x4da13c
push edx
push 1
push eax
call fcn.00479fe0
call fcn.00409183
mov byte [0x4da168], 0
jmp 0x403071
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 8]
push 0
push 1
lea edx, [esp + 0x178]
push edx
push str.InputHook
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x18c], 6
mov dword [esp + 0x184], ecx
call fcn.00479e40
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x403071
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x40]
movzx eax, cl
cdq
mov dword [esp + 0xa8], eax
sar ecx, 0x10
movzx eax, cx
mov dword [esp + 0xac], edx
cdq
push 0
push 3
mov dword [esp + 0xc4], edx
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0xc4], eax
push str.InputHook
lea eax, [esp + 0x2c]
mov edi, 1
push eax
mov dword [esp + 0xb4], 6
mov dword [esp + 0xc4], edi
mov dword [esp + 0xd4], edi
call fcn.00479e40
jmp 0x403071
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov word [esp + 0x88], ax
sar eax, 0x10
push 0
mov word [esp + 0x8e], ax
mov eax, dword [edx + 8]
push 2
xor ecx, ecx
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0xa4], eax
mov word [esp + 0x98], cx
mov dword [esp + 0xbc], ecx
push str.InputHook
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x98]
push eax
mov dword [esp + 0xb4], 6
mov dword [esp + 0xbc], ecx
call fcn.00479e40
jmp 0x403071
mov ecx, dword [esp + 0x84]
mov al, byte [ecx + 0x10]
cmp al, 0x9c
jb 0x403053
cmp al, 0x9f
ja 0x403053
movzx edx, word [esp + 0x40]
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov dword [ebx + 0xc4], eax
mov dl, byte [esi + 0x18]
push esi
push ecx
mov byte [ebx + 0xf6], dl
call fcn.0040ffd0
lea eax, [esp + 0x1c0]
push eax
call fcn.00403af0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x401583
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.00403320
add esp, 8
test eax, eax
je 0x401583
mov byte [esp + 0x23], 1
mov byte [esp + 0x5c], 1
jmp 0x401583
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403128
mov eax, dword [0x4d4b04]
lea edx, [esp + 0x34]
mov byte [eax + 0xe8], 1
mov ecx, dword [esp + 0x38]
push edx
push esi
mov dword [eax + 0xe4], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x40311b
cmp dword [0x4d8844], 0
je 0x40310a
mov eax, dword [0x4d5d24]
test eax, eax
je 0x4030fe
mov eax, dword [eax]
test eax, eax
jne 0x403103
mov eax, 0x4af9bc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4d4b04]
mov byte [eax + 0xe8], 0
jmp 0x401583
mov ecx, dword [0x4d4b04]
mov byte [ecx + 0xe8], 0
mov eax, dword [0x4d86b4]
test eax, eax
je 0x40314b
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [0x4d86a0]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401583
mov eax, dword [0x4d4b04]
mov byte [eax + 0xe8], 1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x34]
push edx
mov dword [eax + 0xe4], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x4d4b04]
mov byte [ecx + 0xe8], 0
jmp 0x401583
cmp esi, 0xffffffff
jle 0x4031a7
mov dword [0x4da1c8], 0
mov dword [0x4da1cc], 0
mov dword [0x4da1d8], eax
cmp byte [esp + 0x22], 0
mov dword [0x4da1dc], eax
je 0x4031ba
mov byte [0x4d8801], 0
cmp byte [esp + 0x21], 0
je 0x401e56
dec dword [0x4d8810]
test esi, esi
jle 0x401e56
cmp dword [0x4d8810], 0
jne 0x401e56
cmp dword [0x4da17c], 0
jne 0x401e56
cmp dword [0x4d8f0c], 0
jne 0x401e56
cmp byte [0x4d87df], 0
je 0x401e56
mov edx, dword [0x4d86a0]
push 9
push edx
jmp 0x401e45