Function at 0x401790
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
push 0xffffffffffffffff
push 0x496a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12a8
call fcn.004918b0
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x74], ebp
mov esi, ecx
mov dword [esp + 0x10], esi
mov byte [esp + 0x29], 0
cmp ebp, 2
jne 0x4017ee
cmp byte [0x4acec3], 0
mov ebp, 1
mov dword [esp + 0x74], ebp
jne 0x4017ee
mov byte [0x4acec3], 1
mov byte [esp + 0x29], 1
cmp dword [0x4af038], 0
je 0x401830
cmp dword [0x4af028], 0
je 0x401816
push dword [0x4af020]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4af028], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af038], 0
mov dword [0x4af020], 0
cmp esi, 0x8000012f
jne 0x401850
mov esi, 0xa
mov byte [esp + 0x54], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], 0
jmp 0x401872
cmp esi, 5
setle al
mov byte [esp + 0x54], al
test al, al
je 0x401868
mov dword [esp + 0x6c], 0
jmp 0x401872
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
cmp dword [0x4adb48], 0
je 0x401880
call fcn.00403600
xor bl, bl
mov edi, 1
cmp dword [0x4aef90], 0
mov dword [esp + 0x58], ebx
je 0x4018a5
call fcn.00403450
test al, al
movzx ebx, bl
cmovne ebx, edi
mov dword [esp + 0x58], ebx
test esi, esi
jle 0x4018df
cmp ebp, 1
jne 0x4018df
inc dword [0x4ad0e4]
cmp byte [0x4acec2], 0
mov byte [esp + 0x28], 1
jne 0x4018e4
push 0
push 0xa
push 9
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4acec2]
jmp 0x4018e4
mov byte [esp + 0x28], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2a], 0
mov dword [esp + 0x68], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
call ebp
mov ebx, eax
test esi, esi
jle 0x4019d2
cmp byte [esp + 0x2a], 0
jne 0x4019d2
cmp byte [0x4acec3], 0
jne 0x4019df
cmp dword [0x4aa1d0], 0
je 0x401994
cmp dword [0x4acfb0], 0
jne 0x401994
mov ecx, dword [0x4aa1d8]
cmp byte [ecx + 0xcc], 0
jne 0x401976
cmp byte [ecx + 0xce], 0
jne 0x401976
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x401976
call ebp
mov ecx, dword [0x4aa1d8]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x401976
mov byte [ecx + 0xcc], 1
movzx ecx, byte [ecx + 0xcc]
jmp 0x401996
mov esi, dword [esp + 0x10]
jmp 0x401902
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x401902
xor ecx, ecx
xor edx, edx
mov eax, 0x311
test ecx, ecx
cmovne eax, edx
push eax
push edx
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x401902
call ebp
mov ecx, eax
sub ecx, ebx
cmp ecx, 3
jbe 0x401c24
mov dword [0x4aefd8], eax
jmp 0x401c24
cmp byte [0x4acec3], 0
je 0x401b19
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401b19
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ae958]
jne 0x401b19
cmp dword [0x4ad0dc], 0
je 0x401a40
push 0x20
lea eax, [esp + 0x128]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetClassNameA]
call esi
lea eax, [esp + 0x124]
push str.32770
push eax
call fcn.0048440c
add esp, 8
test eax, eax
sete al
test al, al
jne 0x401a97
jmp 0x401a46
mov esi, dword [sym.imp.USER32.dll_GetClassNameA]
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401b19
push 0x20
lea ecx, [esp + 0x128]
push ecx
push eax
call esi
lea eax, [esp + 0x124]
push str.SysTreeView32
push eax
call fcn.00484212
add esp, 8
test eax, eax
je 0x401a97
lea eax, [esp + 0x124]
push str.SysListView32
push eax
call fcn.00484212
add esp, 8
test eax, eax
jne 0x401b19
call fcn.00403c10
push 0
push 0x1ff
neg eax
push 0
sbb esi, esi
lea eax, [esp + 0x38]
push 0
and esi, 0xfffffcee
push eax
add esi, 0x311
call edi
test eax, eax
lea eax, [esp + 0x2c]
jne 0x401ad3
push 1
push esi
push 0x20e
jmp 0x401b89
mov edi, dword [esp + 0x3c]
push 0
push esi
push 0x20e
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push 1
test eax, eax
jne 0x401afe
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0x1ff
jmp 0x401b83
mov eax, dword [esp + 0x40]
sub eax, edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
lea eax, [esp + 0x30]
jle 0x401ac8
push 0x1ff
jmp 0x401b87
cmp dword [0x4aa1d0], 0
je 0x401b72
cmp dword [0x4acfb0], 0
jne 0x401b72
mov ecx, dword [0x4aa1d8]
cmp byte [ecx + 0xcc], 0
jne 0x401b69
cmp byte [ecx + 0xce], 0
jne 0x401b69
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x401b69
call ebp
mov ecx, dword [0x4aa1d8]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x401b69
mov byte [ecx + 0xcc], 1
movzx ecx, byte [ecx + 0xcc]
jmp 0x401b74
xor ecx, ecx
xor edx, edx
mov eax, 0x311
test ecx, ecx
push 1
cmovne eax, edx
push eax
lea eax, [esp + 0x34]
push 0
push 0
push eax
call edi
test eax, eax
jne 0x401c20
call ebp
mov edx, dword [0x4aefd8]
mov ecx, eax
mov esi, dword [esp + 0x10]
sub ecx, ebx
cmp ecx, 3
cmova edx, eax
mov dword [0x4aefd8], edx
test esi, esi
jne 0x401bce
cmp byte [esp + 0x2b], 0
jne 0x401bce
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x2b], 1
jmp 0x401902
cmp dword [esp + 0x68], 0
jne 0x401bf5
cmp byte [esp + 0x54], 0
je 0x401bf5
test esi, esi
jle 0x401be8
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x68], 1
jmp 0x401902
call ebp
cmp byte [esp + 0x54], 0
jne 0x4032bd
mov ecx, dword [esp + 0x6c]
sub ecx, eax
add ecx, esi
cmp ecx, 5
jle 0x4032bd
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401902
mov esi, dword [esp + 0x10]
inc dword [esp + 0x68]
cmp dword [0x4ae968], 0
je 0x401c5b
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.00403660
add esp, 0x10
test al, al
jne 0x401902
mov edx, dword [0x4ad0d8]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
test edx, edx
je 0x402004
test ebp, ebp
je 0x402004
cmp ebp, dword [0x4ad0e0]
je 0x402004
cmp edi, 0x414
je 0x402004
cmp edi, 0x402
je 0x402004
lea eax, [edi - 0x100]
cmp eax, 9
ja 0x401fa4
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
test ebx, ebx
je 0x401f96
mov ecx, ebx
call fcn.004762b0
mov esi, eax
test esi, esi
je 0x401f96
mov ecx, ebx
call fcn.00458ac0
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x401f96
mov ecx, dword [ebp + 0x74]
test ecx, ecx
je 0x401d08
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x401989
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp edi, 0x100
jne 0x401f3d
cmp byte [ebp + 0xb8], 0
je 0x401e87
cmp esi, 0x22
je 0x401d46
cmp esi, 0x21
je 0x401d46
cmp esi, 9
je 0x401d46
cmp esi, 0x25
je 0x401d46
cmp esi, 0x27
jne 0x401e87
push ebx
mov ecx, ebp
call fcn.00401660
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
je 0x401e73
mov cl, byte [edx + 4]
cmp cl, 0xf
je 0x401e73
mov esi, dword [esp + 0x34]
xor edi, edi
cmp cl, 0x13
jne 0x401d9e
mov edi, edx
cmp esi, 0x25
je 0x401d7f
cmp esi, 0x27
jne 0x401d9e
cmp esi, 0x27
mov ecx, ebp
push 0
sete al
push 0
movzx eax, al
push eax
push edx
call fcn.00465b10
mov esi, dword [esp + 0x10]
jmp 0x4018f6
cmp esi, 0x25
je 0x401e77
cmp esi, 0x27
je 0x401e77
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401e73
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp esi, 9
jne 0x401df3
cmp byte [eax + 4], 0xc
jne 0x401df3
push 0xfffffffffffffff0
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
jne 0x401e73
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
test edi, edi
jne 0x401e17
movzx eax, byte [eax + 6]
mov ecx, ebp
push eax
call fcn.00465860
mov edi, eax
test edi, edi
jne 0x401e17
push eax
mov ecx, ebp
call fcn.00465860
mov edi, eax
test edi, edi
je 0x401e77
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401e73
mov eax, dword [esp + 0x34]
cmp eax, 0x22
je 0x401e5b
cmp eax, 9
jne 0x401e43
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401e5b
push 1
push 1
xor al, al
mov ecx, ebp
push eax
push edi
call fcn.00465b10
mov esi, dword [esp + 0x10]
jmp 0x4018f6
push 1
push 1
mov al, 1
mov ecx, ebp
push eax
push edi
call fcn.00465b10
mov esi, dword [esp + 0x10]
jmp 0x4018f6
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp edi, 0x100
jne 0x401f3d
cmp esi, 0x1b
je 0x401ebe
cmp esi, 9
je 0x401ebe
cmp esi, 0x41
jne 0x401f3d
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
mov edi, 0x8000
test di, ax
je 0x401f35
push 0xa5
call esi
test di, ax
jne 0x401f35
push ebx
mov ecx, ebp
call fcn.00401660
mov dword [esp + 0x24], eax
test eax, eax
je 0x401f35
cmp byte [eax + 4], 0xc
jne 0x401f35
mov esi, dword [esp + 0x34]
cmp esi, 0x1b
je 0x401f25
cmp esi, 0x41
je 0x401f05
test byte [eax + 5], 0x80
je 0x401f39
push 0x49bc80
push 1
push 0xc2
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x10]
jmp 0x4018f6
test byte [eax + 5], 2
jne 0x401f39
push 0xffffffffffffffff
push 0
push 0xb1
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x10]
jmp 0x4018f6
mov ecx, ebp
call fcn.00462280
mov esi, dword [esp + 0x10]
jmp 0x4018f6
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov eax, dword [0x4ae900]
test eax, eax
je 0x401f8a
cmp edi, 0x100
jne 0x401f8a
cmp esi, 0xd
jne 0x401f6c
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x10]
jmp 0x4018f6
cmp esi, 0x1b
jne 0x401f8a
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x10]
jmp 0x4018f6
mov ebp, dword [esp + 0x2c]
mov edx, dword [0x4ad0d8]
jmp 0x401fa8
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov edx, dword [0x4ad0d8]
mov esi, dword [esp + 0x34]
xor ebx, ebx
test edx, edx
jle 0x402008
mov edi, edi
mov ecx, dword [0x4aa1d8]
mov byte [ecx + 0xc8], 1
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc4], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x4ad0d4]
mov eax, dword [eax + ebx*4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4032a8
mov eax, dword [0x4aa1d8]
inc ebx
mov edx, dword [0x4ad0d8]
mov byte [eax + 0xc8], 0
cmp ebx, edx
jl 0x401fb0
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
cmp edi, 0x312
ja 0x4021a5
je case.0x4021b7.1026
cmp edi, 0x100
ja 0x40208d
je 0x402061
cmp edi, 0x12
je 0x40204a
cmp edi, 0x4b
jne case.0x4021b7.1027
mov esi, dword [esp + 0x10]
mov dword [0x4ad0c4], 0
mov byte [esp + 0x2a], 1
jmp 0x4018f6
push 0
push 6
mov ecx, 0x4ae9b0
call fcn.004162b0
mov esi, dword [esp + 0x10]
jmp 0x4018f6
cmp ebp, dword [0x4acfbc]
jne case.0x4021b7.1027
cmp esi, 0x1b
jne case.0x4021b7.1027
push 0
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [esp + 0x10]
jmp 0x4018f6
cmp edi, 0x113
jne case.0x4021b7.1027
cmp dword [esp + 0x38], 0
jne case.0x4021b7.1027
cmp ebp, dword [0x4ad0e0]
jne case.0x4021b7.1027
cmp dword [0x4adb48], 0
je 0x4020be
call fcn.00403600
cmp dword [0x4aef90], 0
je 0x4020e3
call fcn.00403450
mov edx, dword [esp + 0x58]
test al, al
movzx ebx, dl
mov eax, 1
cmovne ebx, eax
mov dword [esp + 0x58], ebx
jmp 0x4020e7
mov ebx, dword [esp + 0x58]
cmp dword [esp + 0x74], 0
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
je 0x401902
cmp esi, 1
jl 0x401902
push dword [esp + 0x54]
mov edx, dword [esp + 0x70]
mov ecx, esi
call fcn.00403400
add esp, 4
test eax, eax
je 0x4018f6
movzx eax, byte [0x4acec3]
xor ecx, ecx
cmp byte [esp + 0x29], cl
cmovne eax, ecx
mov byte [0x4acec3], al
cmp byte [esp + 0x28], cl
je 0x40218d
mov eax, dword [0x4ad0e4]
dec eax
mov dword [0x4ad0e4], eax
test esi, esi
jle 0x40218d
test eax, eax
jne 0x40218d
cmp dword [0x4aef90], ecx
jne 0x40218d
cmp dword [0x4adb48], ecx
jne 0x40218d
cmp byte [0x4acec2], cl
je 0x40218d
push 9
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4acec2]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4acec2], cl
mov al, bl
mov ecx, dword [esp + 0x12bc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x400]
cmp eax, 0x15
ja case.0x4021b7.1027
movzx eax, byte [eax + 0x403368]
jmp dword [eax*4 + 0x40335c]
test ebp, ebp
je case.0x4021b7.1026
cmp ebp, dword [0x4ad0e0]
jne case.0x4021b7.1027
xor ebx, ebx
lea eax, [edi - 0x401]
mov dword [esp + 0x4c], ebx
cmp eax, 0x14
ja case.0x4021e6.1027
movzx eax, byte [eax + 0x403394]
jmp dword [eax*4 + 0x403380]
xor ecx, ecx
test edx, edx
jle 0x402211
mov ebx, dword [0x4ad0d4]
lea esp, [esp]
mov eax, dword [ebx + ecx*4]
cmp dword [eax + 4], ebp
je 0x4022c2
inc ecx
cmp ecx, edx
jl 0x402200
xor esi, esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x403242
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ae958]
jne 0x403242
push 0x20
lea eax, [esp + 0x128]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x124]
push str.32770
push eax
call fcn.0048440c
add esp, 8
test eax, eax
jne 0x403242
mov ecx, dword [0x4aa1d8]
mov byte [ecx + 0xc8], 1
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc4], eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
je 0x403233
cmp dword [0x4ad0dc], 0
je 0x4032a8
push 0x4acfc0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x4aa1d8]
mov esi, dword [esp + 0x10]
mov byte [eax + 0xc8], 0
jmp 0x4018f6
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je case.0x4021b7.1027
mov ecx, dword [esp + 0x38]
mov ebx, esi
movzx edx, si
xor eax, eax
shr ebx, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x14], eax
cmp edx, 8
jne 0x40230a
mov dword [esp + 0x20], ebx
mov ebx, 0x2af8
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], ebx
cmp ebx, dword [ebp + 0x10]
jae 0x40231a
mov eax, dword [ebp + 0x18]
lea ecx, [ebx + ebx*4]
lea ecx, [eax + ecx*4]
jmp 0x40231c
xor ecx, ecx
lea eax, [edx - 5]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x64], 0
mov byte [esp + 0x1b], 0
cmp eax, 4
ja case.default.0x402339
jmp dword [eax*4 + 0x4033ac]
mov ebp, dword [ebp + 0x2c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x4018f6
mov eax, dword [esp + 0x1c]
add eax, 0x3a
jmp 0x402392
mov ebp, dword [ebp + 0x24]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x4018f6
mov eax, dword [esp + 0x1c]
add eax, 0x38
jmp 0x402392
mov ebp, dword [ebp + 0x28]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x4018f6
mov eax, dword [esp + 0x1c]
add eax, 0x39
mov dword [esp + 0x64], eax
test eax, eax
je 0x40249b
cmp byte [eax], 0
mov esi, dword [esp + 0x10]
jne 0x4018f6
mov ebx, dword [esp + 0x4c]
xor esi, esi
jmp 0x4026b8
mov ebp, dword [ebp + 0x34]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x4018f6
mov ebx, dword [esp + 0x4c]
xor esi, esi
jmp 0x4026b8
mov ebx, dword [ebp + 0x68]
mov ebp, dword [ebp + 0x30]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x402418
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test ebx, ebx
je 0x401989
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov dword [esp + 0x20], eax
test eax, eax
je 0x402418
mov edi, dword [esp + 0x30]
xor esi, esi
jmp 0x4026b8
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test ebx, ebx
je 0x401902
push ebx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x68], 0
mov esi, dword [esp + 0x10]
jmp 0x4018f6
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
test ecx, ecx
je 0x4018fc
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x48], ebp
test ebp, ebp
jne 0x40248c
test byte [ecx + 5], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
je 0x401902
mov ecx, dword [esp + 0x1c]
call fcn.00462220
jmp 0x4018f6
test byte [ecx + 5], 4
jne 0x4018f6
mov byte [esp + 0x1b], 1
mov ebx, dword [esp + 0x4c]
xor esi, esi
jmp 0x4026b8
test esi, esi
je 0x4024cb
mov ecx, esi
call fcn.00458a90
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x4024d1
test ebp, ebp
je 0x4024d1
cmp ebp, dword [0x4ad0e0]
jne case.0x4021b7.1027
jmp 0x4024d1
xor esi, esi
mov dword [esp + 0x1c], esi
push dword [esp + 0x38]
mov ecx, 0x4ae9b0
call fcn.004016c0
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x98], eax
test eax, eax
je 0x4018fc
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x4018f6
mov esi, dword [eax + 0x18]
jmp 0x4026b4
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp esi, dword [0x4adb44]
jae 0x401980
mov eax, dword [0x4adb40]
mov ecx, dword [eax + esi*4]
mov dword [esp + 0x60], ecx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x40256f
mov edx, dword [esp + 0x60]
mov edx, dword [edx + 4]
call fcn.00409bb0
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x50], edi
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
je 0x401902
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x10]
mov cl, byte [ecx]
cmp cl, 1
je 0x402577
cmp cl, 3
je 0x402577
jmp 0x402573
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], ebx
push dword [esp + 0x38]
mov ecx, eax
call fcn.0040cd40
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [edx + 0xc], ebx
jne 0x401902
movzx eax, byte [esp + 0x38]
xor ecx, ecx
cmp byte [edx + 0x2a], cl
cmovne ecx, eax
mov byte [0x4aefa8], cl
mov ebp, dword [edx]
mov esi, dword [edx + 0x14]
jmp 0x4026b0
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x4aef7c], bl
jne 0x4018fc
mov ebp, dword [0x4aef70]
test ebp, ebp
cmove ebp, dword [0x4aed24]
xor esi, esi
jmp 0x4026b4
mov eax, dword [0x4ab8fc]
mov ecx, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
and ecx, 0x7fff
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp cx, word [eax]
jae 0x401980
mov eax, dword [0x4adb4c]
shr esi, 0x10
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x7c], eax
test si, si
je 0x402646
mov edi, dword [eax + 0x20]
add esi, 0xffff
mov dword [esp + 0x70], edi
test si, si
je 0x402642
mov edi, dword [edi + 8]
add esi, 0xffff
test si, si
jne 0x402630
mov dword [esp + 0x70], edi
test edi, edi
jne 0x402660
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.0040a740
mov edi, eax
mov dword [esp + 0x70], edi
test edi, edi
je 0x4032b4
push edi
call fcn.004016f0
test al, al
jne 0x402687
cmp byte [edi + 0x1a], bl
je 0x402673
mov byte [edi + 0x1b], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [esp + 0x10]
mov dword [edi + 0xc], eax
jmp 0x4018fc
mov eax, dword [edi + 4]
test eax, eax
je 0x4026a7
mov al, byte [eax]
cmp al, 2
je 0x4026a7
cmp al, 4
je 0x4026a7
cmp al, 5
jb 0x4026ab
mov eax, dword [0x4ad0d0]
mov dword [esp + 0x50], eax
jmp 0x4026ab
mov dword [esp + 0x50], ebx
mov ebp, dword [edi]
mov esi, dword [edi + 0x10]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x48], ebp
mov eax, dword [0x4b066c]
test al, 1
jne 0x4026db
push 0
or eax, 1
mov ecx, 0x4b0670
push 0
mov dword [0x4b066c], eax
call fcn.00414e20
mov edi, dword [esp + 0x30]
mov eax, dword [0x4aed24]
mov ecx, dword [ebp]
cmp ecx, dword [eax]
jne 0x4026eb
xor eax, eax
jmp 0x4026f7
xor eax, eax
cmp ecx, dword [0x4b0670]
setne al
inc eax
sub eax, 0
je 0x4026ff
dec eax
jne 0x40270a
mov eax, dword [ebp + 8]
test eax, eax
je 0x40270a
mov cl, byte [eax]
jmp 0x40270c
xor cl, cl
mov edx, dword [0x4ad0cc]
mov eax, dword [0x4aa1d4]
mov byte [esp + 0x80], cl
cmp edx, eax
jl 0x402751
add eax, 2
cmp edx, eax
jge 0x40275b
cmp cl, 0xde
je 0x402751
cmp cl, 0xca
je 0x402751
cmp cl, 0xd8
je 0x402751
cmp cl, 0xd9
je 0x402751
cmp cl, 0xd4
je 0x402751
cmp cl, 0xd5
je 0x402751
cmp cl, 0xd6
je 0x402751
cmp cl, 0xd7
jne 0x40275b
mov eax, dword [0x4aa1d8]
cmp esi, dword [eax + 0x2c]
jge 0x40278a
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test ebx, ebx
je 0x401902
push ebx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ebp, dword [esp + 0x1c]
mov dword [ebp + 0x68], 0
jmp 0x4018f6
mov byte [esp + 0x58], 1
cmp edi, 0x402
je 0x4027eb
cmp edi, 0x413
jbe 0x4027ab
cmp edi, 0x415
jbe 0x402831
mov eax, dword [0x4aef38]
mov dword [0x4aef3c], eax
mov eax, dword [0x4aefa0]
mov dword [0x4aefa4], eax
cmp edi, 0x401
jne 0x4027d0
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
jmp 0x4027d7
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aef38], eax
call ebx
mov dword [0x4aefa0], eax
jmp 0x402837
mov ebx, dword [esp + 0x98]
push 0x104
push dword [ebx]
push 0x4aed2c
call fcn.00487600
add esp, 0xc
mov byte [0x4aee30], 0
mov eax, dword [ebx + 0x10]
push 0x104
push dword [eax]
push 0x4aee31
call fcn.00487600
add esp, 0xc
mov byte [0x4aef35], 0
mov dword [0x4aed28], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4ad0c8]
push 0
push 1
call fcn.00401490
push 0x7f
push eax
lea eax, [esp + 0x188]
push eax
call fcn.00487600
add esp, 0xc
mov byte [esp + 0x1ff], 0
xor dl, dl
mov ecx, esi
push dword [esp + 0x80]
push 1
call fcn.00403a20
mov edi, dword [0x4aa1d8]
add esp, 8
call ebx
mov dword [0x4aefdc], eax
mov dword [0x4aefd8], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4028a1.1027
movzx eax, byte [eax + 0x4033d4]
jmp dword [eax*4 + 0x4033c0]
cmp byte [esp + 0x1b], 0
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x88], 0
je 0x4028c3
mov ecx, dword [edx]
jmp 0x4028c6
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x14]
mov eax, esi
add eax, eax
inc esi
mov dword [esp + 0x14], esi
mov dword [esp + eax*8 + 0xa0], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + eax*8 + 0xa8], 1
mov dword [esp + eax*8 + 0xa4], 0
lea eax, [ecx - 5]
cmp eax, 4
ja case.default.0x402900
jmp dword [eax*4 + 0x4033ec]
mov ecx, dword [esp + 0x20]
lea esi, [edi + 0x3c]
xor eax, eax
mov dword [esp + 0x20], 0
test ecx, ecx
sete al
lea eax, [eax*2 + 1]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esi], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 4], eax
test edx, edx
je 0x4029dc
cmp dword [edi + 0x34], 1
jne 0x40294d
push esi
push edx
call fcn.004663f0
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + 4]
sub eax, 9
je 0x4029c6
dec eax
je 0x4029bb
dec eax
jne 0x4029dc
cmp dword [edi + 0x34], 1
jne 0x402978
push eax
push 9
push 0x110a
push dword [edx]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4029d8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x118], eax
lea eax, [esp + 0x114]
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x114]
push eax
mov eax, dword [esp + 0x28]
push 0
push 0x1111
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4029d8
push 1
push 0xffffffffffffffff
push 0x100c
jmp 0x4029cf
push 0
push 0
push 0x19f
push dword [edx]
call dword [sym.imp.USER32.dll_SendMessageA]
inc eax
mov dword [esp + 0x20], eax
mov edx, dword [ebx + 4]
mov ecx, esi
call fcn.004728c0
mov edx, dword [esp + 0x24]
test edx, edx
je 0x402a1a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xa0]
shl eax, 4
add ecx, eax
mov eax, dword [edx]
inc dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], 0
jmp 0x402a39
mov edx, dword [esp + 0x14]
mov eax, edx
add eax, eax
inc edx
mov dword [esp + eax*8 + 0xa8], 0
mov dword [esp + eax*8 + 0xa0], 0x49bc4d
mov ecx, dword [esp + 0x20]
mov eax, edx
add eax, eax
mov dword [esp + eax*8 + 0xa0], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + eax*8 + 0xa8], 1
mov dword [esp + eax*8 + 0xa4], 0
lea eax, [edx + 1]
shl eax, 4
add edx, 2
add ecx, eax
mov dword [esp + 0x14], edx
xor eax, eax
cmp dword [edi + 0x34], 3
sete al
cdq
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, edx
mov dword [ecx + 8], 1
inc edx
shl eax, 4
lea ecx, [esp + 0xa0]
add ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esi]
cdq
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, edx
mov dword [ecx + 8], 1
lea ecx, [esp + 0xa0]
shl eax, 4
add ecx, eax
mov eax, dword [edi + 0x40]
inc edx
mov dword [esp + 0x14], edx
cdq
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x20]
cmp byte [esp + 0x1b], 0
je 0x402f58
mov esi, dword [esp + 0x24]
cmp byte [esi + 4], 0x17
jne 0x402f58
push 0x10b8
lea eax, [esp + 0x204]
push 0
push eax
call fcn.0048e820
mov eax, dword [esp + 0x2c]
add esp, 0xc
dec eax
mov dword [esp + 0x200], 0xd
mov dword [esp + 0x204], eax
lea eax, [esp + 0x200]
push eax
push 0
push 0x703
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402bd7
sub esp, 8
lea ecx, [esp + 0x218]
cmp word [esp + 0x278], 0
lea eax, [esp + 0x278]
cmove eax, ecx
lea ecx, [esp + 0x14c]
push 0xffffffffffffffff
push eax
call fcn.00403e10
push 1
push 0
push 0xffffffffffffffff
mov ecx, eax
mov dword [esp + 0x12d0], 0
call fcn.00403d60
mov ecx, dword [0x4ad0c8]
push eax
call fcn.004744e0
lea ecx, [esp + 0x144]
mov dword [esp + 0x12c4], 0xffffffff
call fcn.00403d80
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0xa0]
mov eax, ecx
inc ecx
push 0
shl eax, 4
mov dword [esp + 0x18], ecx
add esi, eax
mov ecx, dword [0x4ad0c8]
push 1
call fcn.00401490
mov dword [esi + 8], 0
mov dword [esi], eax
mov esi, dword [esp + 0x5c]
mov eax, dword [ebx + 4]
mov dword [edi + 0xa4], eax
add dword [ebx + 0x20], 2
mov eax, dword [esp + 0x84]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x38], eax
mov edi, dword [esp + 0x64]
test edi, edi
je 0x402fc9
mov byte [edi], 1
mov ebx, dword [esp + 0x24]
push 0
lea eax, [esp + 0xa0]
mov edx, ebp
push eax
mov eax, dword [esp + 0x1c]
mov ecx, ebp
push eax
lea eax, [esp + 0xac]
push eax
push str.call
call fcn.00469810
mov ebp, dword [esp + 0x30]
add esp, 0x14
cmp dword [ebp + 4], 0
je 0x403029
test edi, edi
je 0x402fe1
mov byte [edi], 0
cmp esi, 6
jne 0x402fec
cmp dword [esp + 0x9c], 0
jne 0x403029
lea ecx, [esp + 0x48]
call fcn.00401540
test eax, eax
jne 0x403029
mov ecx, ebp
call fcn.00462220
mov ecx, ebp
call fcn.0045aba0
jmp 0x4031e3
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x34], ecx
lea ecx, [edi + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x40], eax
mov edx, dword [esi + 4]
call fcn.004728c0
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0xa0]
mov eax, ecx
inc ecx
shl eax, 4
mov dword [esp + 0x14], ecx
add esi, eax
mov ecx, dword [esp + 0x4c]
call fcn.0045ad90
mov edx, dword [esp + 0x24]
mov dword [esi + 8], 6
mov dword [esi], eax
test edx, edx
je 0x402d26
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xa0]
mov eax, esi
shl eax, 4
add ecx, eax
mov eax, dword [edx]
inc esi
mov dword [esp + 0x14], esi
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov ecx, esi
jmp 0x402d45
mov ecx, dword [esp + 0x14]
mov eax, ecx
add eax, eax
inc ecx
mov dword [esp + eax*8 + 0xa8], 0
mov dword [esp + eax*8 + 0xa0], 0x49bc4d
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0xa0]
mov eax, ecx
inc ecx
shl eax, 4
add esi, eax
mov dword [esp + 0x14], ecx
cmp byte [ebx + 0xc0], 0
mov eax, dword [edi + 0x3c]
je 0x402d7b
push dword [0x4ae95c]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x14]
cdq
mov dword [esi], eax
mov eax, ecx
mov dword [esi + 8], 1
mov dword [esi + 4], edx
lea esi, [esp + 0xa0]
shl eax, 4
add esi, eax
mov eax, dword [edi + 0x40]
inc ecx
cmp byte [ebx + 0xc0], 0
mov dword [esp + 0x14], ecx
je 0x402db6
push dword [0x4ae95c]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cdq
mov dword [esi + 8], 1
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x402ad7
mov dword [edi + 0x34], 1
cmp ecx, 8
jne 0x402ad7
mov edx, dword [esp + 0x78]
mov eax, esi
mov ecx, dword [esp + 0x20]
add eax, eax
inc esi
mov dword [edi + 0x3c], edx
mov dword [esp + 0x14], esi
mov dword [esp + eax*8 + 0xa0], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + eax*8 + 0xa8], 1
inc ecx
mov dword [esp + eax*8 + 0xa4], 0
mov eax, esi
shl eax, 4
lea esi, [esp + 0xa0]
add esi, eax
mov dword [esp + 0x14], ecx
cmp byte [ebx + 0xc0], 0
movzx eax, dx
je 0x402e3f
push dword [0x4ae95c]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x14]
cdq
mov dword [esi], eax
mov eax, ecx
mov dword [esi + 8], 1
inc ecx
mov dword [esi + 4], edx
lea esi, [esp + 0xa0]
shl eax, 4
add esi, eax
mov eax, dword [esp + 0x78]
shr eax, 0x10
jmp 0x402d9a
mov al, byte [edx + 4]
cmp al, 0xa
je 0x402e94
cmp al, 0x19
jne 0x402f07
mov eax, dword [esp + 0x40]
lea ecx, [edi + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 4]
call fcn.004728c0
mov ecx, dword [esp + 0x5c]
jmp 0x402f07
cmp cl, 0x49
jne 0x402f07
lea eax, [esp + 0x88]
test ecx, 0x100
je 0x402eb2
mov byte [esp + 0x88], 0x53
jmp 0x402ec2
test ecx, 0x200
je 0x402ec9
mov byte [esp + 0x88], 0x73
lea eax, [esp + 0x89]
test ecx, 0x400
je 0x402ed6
mov byte [eax], 0x46
jmp 0x402ee1
test ecx, 0x800
je 0x402ee2
mov byte [eax], 0x66
inc eax
test ecx, 0x1000
je 0x402eef
mov byte [eax], 0x43
jmp 0x402efa
test ecx, 0x2000
je 0x402efb
mov byte [eax], 0x63
inc eax
mov ecx, 0x49
mov byte [eax], 0
mov dword [esp + 0x5c], ecx
mov eax, esi
mov dword [edi + 0x34], ecx
shl eax, 4
lea edx, [esp + 0xa0]
add edx, eax
call fcn.0045ad70
mov dword [edx], eax
lea eax, [esi + 1]
add eax, eax
mov dword [edx + 8], 0
mov edx, dword [esp + 0x20]
add esi, 2
mov dword [esp + 0x14], esi
mov dword [esp + eax*8 + 0xa8], 1
mov dword [esp + eax*8 + 0xa0], edx
mov dword [esp + eax*8 + 0xa4], 0
jmp 0x402adb
cmp byte [esp + 0x88], 0
je 0x402f88
mov ecx, dword [esp + 0x14]
mov eax, ecx
add eax, eax
inc ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x88]
mov dword [esp + eax*8 + 0xa8], 0
mov dword [esp + eax*8 + 0xa0], ecx
mov esi, dword [esp + 0x5c]
cmp esi, 8
je 0x402fb4
cmp esi, 5
je 0x402fb4
mov ecx, dword [0x4ad0c8]
lea eax, [esp + 0x88]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004744e0
jmp 0x402bdb
mov ecx, dword [0x4ad0c8]
push 0x18
push 0
push edx
call fcn.00401330
jmp 0x402bdb
cmp byte [esp + 0x1b], 0
je 0x402c0e
mov ebx, dword [esp + 0x24]
or byte [ebx + 5], 4
jmp 0x402c12
cmp byte [esp + 0x1b], 0
je 0x402fec
and byte [ebx + 5], 0xfb
cmp esi, 5
jne 0x403029
mov eax, dword [esp + 0xb0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [esp + 0x4c]
call dword [sym.imp.SHELL32.dll_DragFinish]
push 0xffffffffffffffec
push dword [ebp + 4]
mov dword [ebp + 0x68], 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x10
push eax
push 0xffffffffffffffec
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, ebp
call fcn.0045aba0
jmp 0x4031e3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x403057
mov eax, dword [ecx + 4]
mov dword [edi + 0xa4], eax
mov dword [edi + 0x34], 1
add dword [ecx + 0x20], 2
mov dword [edi + 0x48], ecx
mov dword [edi + 0x44], ecx
mov ecx, 0x4ae9b0
mov dword [esp + 0x158], 0
mov dword [esp + 0x150], 0x4aed2c
call fcn.00442220
push 0
inc eax
mov dword [esp + 0x16c], 1
push 0
mov dword [esp + 0x168], eax
mov edx, ebp
push 3
lea eax, [esp + 0x15c]
mov dword [esp + 0x170], 0
push eax
push str.call
mov ecx, ebp
mov dword [esp + 0x18c], 0
mov dword [esp + 0x184], 0x4aee31
call fcn.00469810
mov ebp, dword [esp + 0x30]
add esp, 0x14
test ebp, ebp
je 0x4031e3
mov ecx, ebp
call fcn.0045aba0
jmp 0x4031e3
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
mov dword [edi + 0xa4], eax
mov al, byte [ecx + 0x21]
mov byte [edi + 0xd6], al
call fcn.0040cc80
jmp 0x4031e3
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x403131
mov ebx, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call ebx
test eax, eax
jne 0x40312a
push 0xf
call ebx
test eax, eax
jne 0x40312a
mov eax, 2
jmp 0x403133
mov eax, 1
jmp 0x403133
xor eax, eax
mov ecx, dword [0x4ad0c8]
push 0x18
push 0
push eax
mov dword [edi + 0x38], eax
call fcn.00401330
mov eax, dword [edi + 0x38]
mov ecx, dword [0x4aef70]
mov dword [esp + 0x108], 1
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], 0
mov byte [0x4aef7c], 1
test ecx, ecx
je 0x403182
call fcn.00401500
mov ecx, dword [0x4aef70]
cmp dword [esp + 0x34], 0
jne 0x4031a5
xor eax, eax
test ecx, ecx
mov ecx, 0x4aef50
sete al
push eax
push 1
lea eax, [esp + 0x108]
push eax
call fcn.0046cad0
mov byte [0x4aef7c], 0
jmp 0x4031e3
mov edx, dword [esp + 0x7c]
mov al, byte [edx + 0x10]
cmp al, 0x9c
jb 0x4031c4
cmp al, 0x9f
ja 0x4031c4
mov eax, dword [esp + 0x38]
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x50]
mov dword [edi + 0xa4], eax
push ecx
mov al, byte [ecx + 0x18]
mov ecx, edx
mov byte [edi + 0xd6], al
call fcn.0040ab40
lea ecx, [esp + 0x180]
call fcn.00403b30
cmp dword [esp + 0x74], 0
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
je 0x401902
push dword [esp + 0x54]
mov edx, dword [esp + 0x70]
mov ecx, esi
call fcn.00403400
add esp, 4
test eax, eax
je 0x401902
mov byte [esp + 0x2a], 1
mov byte [esp + 0x54], 1
jmp 0x4018f6
mov ecx, dword [0x4aa1d8]
mov byte [ecx + 0xc8], 0
jmp 0x403248
mov ecx, dword [0x4aa1d8]
mov eax, dword [0x4acfb8]
test eax, eax
je 0x403281
lea ecx, [esp + 0x2c]
push ecx
push eax
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x401902
mov ecx, dword [0x4aa1d8]
mov byte [ecx + 0xc8], 1
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc4], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x4aa1d8]
mov byte [eax + 0xc8], 0
mov esi, dword [esp + 0x10]
jmp 0x4018f6
cmp esi, 0xffffffff
jle 0x4032d2
xorps xmm0, xmm0
mov dword [0x4aefd8], eax
movlpd qword [0x4aefc8], xmm0
xor ecx, ecx
mov dword [0x4aefdc], eax
cmp byte [esp + 0x29], cl
movzx eax, byte [0x4acec3]
cmovne eax, ecx
mov byte [0x4acec3], al
cmp byte [esp + 0x28], cl
je 0x40333f
mov eax, dword [0x4ad0e4]
dec eax
mov dword [0x4ad0e4], eax
test esi, esi
jle 0x40333f
test eax, eax
jne 0x40333f
cmp dword [0x4aef90], ecx
jne 0x40333f
cmp dword [0x4adb48], ecx
jne 0x40333f
cmp byte [0x4acec2], cl
je 0x40333f
push 9
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4acec2]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4acec2], cl
mov edx, dword [esp + 0x58]
mov al, dl
mov ecx, dword [esp + 0x12bc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret