Function at 0x4013d0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Hide graphical window
Log keystrokes via polling
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x134c
call fcn.004993f0
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov byte [esp + 0x23], 0
lea ebx, [edi + 1]
jne 0x401409
cmp byte [0x4c8695], 0
mov dword [ebp + 0xc], ebx
jne 0x401409
mov byte [0x4c8695], bl
mov byte [esp + 0x23], bl
cmp dword [0x4ca268], edi
je 0x40143d
cmp dword [0x4ca258], edi
je 0x40142b
mov eax, dword [0x4ca250]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ca258], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ca268], edi
mov dword [0x4ca250], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x40145d
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x60], 1
mov dword [esp + 0x68], edi
jmp 0x40147b
cmp esi, 5
setle al
mov byte [esp + 0x60], al
test al, al
je 0x401471
mov dword [esp + 0x68], edi
jmp 0x40147b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x68], eax
cmp dword [0x4c8fa0], edi
je 0x401488
call fcn.00403110
mov byte [esp + 0x12], 0
cmp dword [0x4ca1c0], edi
je 0x4014a3
call fcn.00402f40
test al, al
je 0x4014a3
mov byte [esp + 0x12], 1
cmp esi, edi
jle 0x4016df
cmp dword [ebp + 0xc], ebx
jne 0x4016df
add dword [0x4c86a4], ebx
cmp byte [0x4c868f], 0
mov byte [esp + 0x1a], 1
jne 0x4014e5
mov ecx, dword [0x4c8538]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4c868f], dl
mov byte [esp + 0x33], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x70], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [ebp + 8]
mov esi, eax
mov dword [esp + 0x24], esi
test ebx, ebx
jle 0x4016e9
cmp byte [esp + 0x1b], 0
jne 0x4016e9
cmp byte [0x4c8695], 0
jne 0x4016f6
call fcn.004036d0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4014f3
call edi
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jbe 0x40155c
mov dword [0x4ca208], eax
inc dword [esp + 0x70]
cmp dword [0x4c96d0], 0
je 0x401598
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
lea edi, [esp + 0xdc]
call fcn.00403180
add esp, 0x10
test al, al
jne 0x4014f3
mov edx, dword [0x4c8cd0]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test edx, edx
je 0x401bd0
test ebx, ebx
je 0x401bd0
cmp ebx, dword [0x4c8538]
je 0x401bd0
cmp ecx, 0x414
je 0x401bd0
cmp ecx, 0x402
je 0x401bd0
lea eax, [ecx - 0x100]
cmp eax, 9
ja 0x401b5c
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x401b62
call fcn.00479360
mov ebx, eax
test ebx, ebx
je 0x401b62
mov eax, esi
call fcn.0045b990
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x401b62
mov eax, dword [edi + 0x74]
test eax, eax
je 0x40163d
lea ecx, [esp + 0x38]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4014f3
cmp dword [esp + 0x3c], 0x100
mov esi, dword [esp + 0x40]
jne 0x401b15
cmp byte [edi + 0xb8], 0
je 0x401a63
cmp esi, 0x22
je 0x401679
cmp esi, 0x21
je 0x401679
cmp esi, 9
je 0x401679
cmp esi, 0x25
je 0x401679
cmp esi, 0x27
jne 0x401a63
mov eax, dword [esp + 0x1c]
mov ebx, edi
call fcn.00401350
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x401a51
mov al, byte [ebx + 4]
cmp al, 0xf
je 0x401a51
mov esi, dword [esp + 0x40]
mov dword [esp + 0x24], 0
cmp al, 0x13
jne 0x40197f
mov dword [esp + 0x24], ebx
cmp esi, 0x25
je 0x4016c3
cmp esi, 0x27
jne 0x40197f
cmp esi, 0x27
sete dl
push 0
movzx eax, dl
push 0
push eax
mov eax, ebx
mov ecx, edi
call fcn.00468b00
jmp 0x4014f3
mov byte [esp + 0x1a], 0
jmp 0x4014e5
cmp byte [0x4c8695], 0
je 0x401877
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401877
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c96c0]
jne 0x401877
cmp dword [0x4c86d4], 0
je 0x401775
push 0x20
lea edx, [esp + 0x164]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.32770
lea eax, [esp + 0x160]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401767
test dx, dx
je 0x401763
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401767
add eax, 4
add ecx, 4
test dx, dx
jne 0x401741
xor eax, eax
jmp 0x40176c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4017ca
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401877
push 0x20
lea ecx, [esp + 0x164]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0x160]
push str.SysTreeView32
push edx
call fcn.0048dbf9
add esp, 8
test eax, eax
je 0x4017ca
lea eax, [esp + 0x160]
push str.SysListView32
push eax
call fcn.0048dbf9
add esp, 8
test eax, eax
jne 0x401877
call fcn.004036d0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
neg eax
push 0
sbb esi, esi
push 0
lea ecx, [esp + 0x48]
and esi, 0xfffffcee
push ecx
add esi, 0x311
call edi
test eax, eax
jne 0x401810
push 1
push esi
push 0x20e
push eax
lea edx, [esp + 0x48]
push edx
call edi
jmp 0x4018f2
mov ebx, dword [esp + 0x48]
push 0
push esi
push 0x20e
push 0
lea eax, [esp + 0x48]
push eax
call edi
push 1
test eax, eax
jne 0x401841
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x48]
push ecx
call edi
mov ebx, dword [ebp + 8]
jmp 0x4018f2
mov edx, dword [esp + 0x4c]
sub edx, ebx
test edx, edx
jle 0x401863
push 0x1ff
push 0
push 0
lea eax, [esp + 0x48]
push eax
call edi
mov ebx, dword [ebp + 8]
jmp 0x4018f2
push esi
push 0x20e
push 0
lea ecx, [esp + 0x48]
push ecx
call edi
mov ebx, dword [ebp + 8]
jmp 0x4018f2
cmp dword [0x4c491c], 0
je 0x4018d0
cmp dword [0x4c86c8], 0
jne 0x4018d0
mov eax, dword [0x4c4a14]
cmp byte [eax + 0xec], 0
jne 0x4018c7
cmp byte [eax + 0xee], 0
jne 0x4018c7
cmp dword [eax + 0xe0], 0xffffffff
jle 0x4018c7
call edi
mov edx, eax
mov eax, dword [0x4c4a14]
sub edx, dword [eax + 0xdc]
cmp edx, dword [eax + 0xe0]
jb 0x4018c7
mov byte [eax + 0xec], 1
movzx eax, byte [eax + 0xec]
jmp 0x4018d2
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 + 0x48]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x40155c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [esp + 0x24]
cmp ecx, 3
jbe 0x401912
mov dword [0x4ca208], eax
test ebx, ebx
jne 0x40192d
cmp byte [esp + 0x33], bl
jne 0x40192d
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x33], 1
jmp 0x4014f3
cmp dword [esp + 0x70], 0
jne 0x401954
cmp byte [esp + 0x60], 0
je 0x401954
test ebx, ebx
jle 0x401947
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x70], 1
jmp 0x4014f3
call esi
cmp byte [esp + 0x60], 0
jne 0x402dc3
mov edx, dword [esp + 0x68]
sub edx, eax
add edx, ebx
cmp edx, 5
jle 0x402dc3
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4014f3
cmp esi, 0x25
je 0x401a55
cmp esi, 0x27
je 0x401a55
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a51
mov esi, dword [esp + 0x40]
cmp esi, 9
jne 0x4019cd
cmp byte [ebx + 4], 0xc
jne 0x4019cd
mov edx, dword [ebx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x401a51
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x24], 0
jne 0x4019f5
mov bl, byte [ebx + 6]
mov ecx, edi
call fcn.00468840
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4019f5
xor bl, bl
call fcn.00468840
mov dword [esp + 0x24], eax
test eax, eax
je 0x401a55
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401a51
mov eax, dword [esp + 0x40]
cmp eax, 0x22
je 0x401a3b
cmp eax, 9
jne 0x401a26
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a3b
xor al, al
push 1
push 1
mov ecx, edi
push eax
mov eax, esi
call fcn.00468b00
jmp 0x4014f3
mov eax, 1
push eax
push eax
push eax
mov eax, esi
mov ecx, edi
call fcn.00468b00
jmp 0x4014f3
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x3c], 0x100
jne 0x401b15
cmp esi, 0x1b
je 0x401a9f
cmp esi, 9
je 0x401a9f
cmp esi, 0x41
jne 0x401b15
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
mov edx, 0x8000
test dx, ax
je 0x401b11
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
jne 0x401b11
mov eax, dword [esp + 0x1c]
mov ebx, edi
call fcn.00401350
mov dword [esp + 0x14], eax
test eax, eax
je 0x401b11
mov edx, eax
cmp byte [edx + 4], 0xc
jne 0x401b11
mov esi, dword [esp + 0x40]
cmp esi, 0x1b
je 0x401b05
cmp esi, 0x41
je 0x401ae8
test byte [eax + 5], 0x80
je 0x401b15
mov eax, dword [eax]
push 0x4a18c0
push 1
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4014f3
test byte [eax + 5], 2
jne 0x401b15
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4014f3
mov eax, edi
call fcn.00465210
jmp 0x4014f3
mov esi, dword [esp + 0x40]
mov eax, dword [0x4c966c]
test eax, eax
je 0x401b66
cmp dword [esp + 0x3c], 0x100
jne 0x401b66
cmp esi, 0xd
jne 0x401b42
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4014f3
cmp esi, 0x1b
jne 0x401b66
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4014f3
mov esi, dword [esp + 0x40]
jmp 0x401b74
mov esi, dword [esp + 0x40]
mov edx, dword [0x4c8cd0]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor edi, edi
test edx, edx
jle 0x401bd4
mov eax, dword [0x4c4a14]
nop
mov ecx, dword [0x4c86dc]
mov byte [eax + 0xe8], 1
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xe4], edx
mov edx, dword [ecx + edi*4]
lea eax, [esp + 0x38]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402db1
mov edx, dword [0x4c8cd0]
mov eax, dword [0x4c4a14]
inc edi
mov byte [eax + 0xe8], 0
cmp edi, edx
jl 0x401b80
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
cmp ecx, 0x312
ja 0x401d2e
je case.0x401d40.1026
cmp ecx, 0x100
ja 0x401c4e
je 0x401c25
cmp ecx, 0x12
je 0x401c12
cmp ecx, 0x4b
jne case.0x401d40.1027
mov dword [0x4c8670], 0
mov byte [esp + 0x1b], 1
jmp 0x4014f3
push 0
push 6
push 0x4c9718
call fcn.00416930
jmp 0x4014f3
cmp ebx, dword [0x4c853c]
jne case.0x401d40.1027
cmp esi, 0x1b
jne case.0x401d40.1027
mov edx, dword [0x4c8538]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4014f3
cmp ecx, 0x113
jne case.0x401d40.1027
cmp dword [esp + 0x44], 0
jne case.0x401d40.1027
cmp ebx, dword [0x4c8538]
jne case.0x401d40.1027
cmp dword [0x4c8fa0], 0
je 0x401c7f
call fcn.00403110
cmp dword [0x4ca1c0], 0
je 0x401c96
call fcn.00402f40
test al, al
je 0x401c96
mov byte [esp + 0x12], 1
cmp dword [ebp + 0xc], 0
je 0x4014f3
cmp dword [ebp + 8], 1
jl 0x4014f3
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.00402f00
add esp, 8
test eax, eax
je 0x4014f3
cmp byte [esp + 0x23], 0
je 0x401cd5
mov byte [0x4c8695], 0
cmp byte [esp + 0x1a], 0
je 0x401d23
dec dword [0x4c86a4]
test esi, esi
jle 0x401d23
cmp dword [0x4c86a4], 0
jne 0x401d23
cmp dword [0x4ca1c0], 0
jne 0x401d23
cmp dword [0x4c8fa0], 0
jne 0x401d23
cmp byte [0x4c868f], 0
je 0x401d23
mov eax, dword [0x4c8538]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x401d23
mov byte [0x4c868f], 0
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x400]
cmp eax, 0x15
ja case.0x401d40.1027
movzx eax, byte [eax + 0x402e5c]
jmp dword [eax*4 + 0x402e50]
test ebx, ebx
je case.0x401d40.1026
cmp ebx, dword [0x4c8538]
jne case.0x401d40.1027
xor edi, edi
lea eax, [ecx - 0x401]
mov dword [esp + 0x24], edi
cmp eax, 0x14
ja case.0x401d6f.1027
movzx ecx, byte [eax + 0x402e88]
jmp dword [ecx*4 + 0x402e74]
xor eax, eax
cmp edx, edi
jle 0x401d93
mov ecx, dword [0x4c86dc]
mov edi, dword [ecx + eax*4]
cmp dword [edi + 4], ebx
je 0x401e11
inc eax
cmp eax, edx
jl 0x401d82
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x402d62
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c96c0]
jne 0x402d62
push 0x20
lea edx, [esp + 0x164]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.32770
lea eax, [esp + 0x160]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402d01
test dx, dx
je 0x401e0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402d01
add eax, 4
add ecx, 4
test dx, dx
jne 0x401de0
xor eax, eax
jmp 0x402d06
mov eax, edi
xor ebx, ebx
mov dword [esp + 0xc], eax
cmp eax, ebx
je case.0x401d40.1027
mov eax, dword [esp + 0x44]
movzx ecx, si
shr esi, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], ebx
cmp ecx, 8
jne 0x401e57
mov dword [esp + 0x78], 0x2af8
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc]
cmp esi, dword [eax + 0x10]
jae 0x401e6f
lea edx, [esi + esi*4]
mov esi, dword [eax + 0x18]
lea edx, [esi + edx*4]
mov dword [esp + 0x14], edx
jmp 0x401e73
mov dword [esp + 0x14], ebx
add ecx, 0xfffffffb
mov dword [esp + 0x64], ebx
mov byte [esp + 0x13], bl
cmp ecx, 4
ja case.default.0x401e87
jmp dword [ecx*4 + 0x402ea0]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x4014f3
mov eax, dword [esp + 0xc]
add eax, 0x3a
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x401eb8
cmp byte [eax], bl
jne 0x4014f3
xor ebx, ebx
jmp 0x4021da
mov edi, dword [eax + 0x24]
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x4014f3
mov ecx, dword [esp + 0xc]
add ecx, 0x38
mov dword [esp + 0x64], ecx
jmp 0x401ea8
mov edi, dword [eax + 0x28]
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x4014f3
mov edx, dword [esp + 0xc]
add edx, 0x39
mov dword [esp + 0x64], edx
jmp 0x401ea8
mov edi, dword [eax + 0x34]
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x4014f3
xor ebx, ebx
jmp 0x4021da
mov edi, dword [eax + 0x30]
mov esi, dword [eax + 0x68]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x401f40
cmp esi, ebx
je 0x4014f3
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x401eb8
cmp esi, ebx
je 0x4014f3
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x68], 0
jmp 0x4014f3
cmp dword [esp + 0x14], ebx
je 0x4014f3
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x401f90
test byte [eax + 5], 1
je 0x4014f3
mov eax, dword [esp + 0xc]
call fcn.004651b0
jmp 0x4014f3
test byte [eax + 5], 4
jne 0x4014f3
mov byte [esp + 0x13], 1
xor ebx, ebx
jmp 0x4021da
cmp esi, edi
je 0x401fc9
call fcn.0045b960
mov dword [esp + 0xc], eax
cmp eax, edi
jne 0x401fcd
cmp ebx, edi
je 0x401fcd
cmp ebx, dword [0x4c8538]
jne case.0x401d40.1027
jmp 0x401fcd
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x44]
mov eax, 0x4c9718
call fcn.004013a0
mov dword [esp + 0x74], eax
test eax, eax
je 0x4014f3
mov ecx, eax
mov edi, dword [ecx + 8]
test edi, edi
je 0x4014f3
mov edx, eax
mov ebx, dword [edx + 0x18]
jmp 0x4021d6
cmp esi, dword [0x4c8fa8]
jae 0x4014f3
mov eax, dword [0x4c8fa4]
mov esi, dword [eax + esi*4]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], esi
test eax, eax
je 0x402088
mov ecx, dword [esi + 4]
push ecx
mov esi, eax
call fcn.004098b0
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
je 0x4014f3
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0x10]
mov al, byte [eax]
cmp al, 1
je 0x40204c
cmp al, 3
je 0x40204c
mov dword [esp + 0x58], edi
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
push ecx
push esi
call fcn.0040ca40
cmp dword [esi + 0xc], edi
jne 0x4014f3
mov esi, dword [esp + 0x54]
cmp byte [esi + 0x2a], 0
je 0x40208e
mov dx, word [esp + 0x44]
mov word [0x4ca1d8], dx
mov edi, dword [esi]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x1c], edi
jmp 0x4021de
mov dword [esp + 0x58], edi
jmp 0x402050
xor eax, eax
mov word [0x4ca1d8], ax
mov edi, dword [esi]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x1c], edi
jmp 0x4021de
cmp byte [0x4ca1ac], 0
jne 0x4014f3
mov edi, dword [0x4ca1a0]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x4020c9
mov edi, dword [0x4c9d4c]
mov dword [esp + 0x1c], edi
xor ebx, ebx
jmp 0x4021da
mov edx, dword [0x4c5b28]
mov eax, esi
and eax, 0x7fff
cmp ax, word [edx]
jae 0x4014f3
mov ecx, dword [0x4c8f84]
movzx eax, ax
mov edx, dword [ecx + eax*4]
shr esi, 0x10
mov eax, esi
mov dword [esp + 0x6c], edx
test ax, ax
je 0x402130
mov ecx, edx
mov edx, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x5c], edx
test ax, ax
je 0x402128
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
add eax, 0xffff
mov dword [esp + 0x5c], edx
test ax, ax
jne 0x402113
mov ebx, dword [esp + 0x5c]
test ebx, ebx
jne 0x40214c
mov eax, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x5c]
call fcn.0040a420
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4014f3
mov ebx, eax
mov esi, dword [ebx]
push esi
call fcn.0046f7b0
add esp, 4
sub eax, 0
je 0x40215f
dec eax
jne 0x40216a
mov esi, dword [esi + 8]
test esi, esi
je 0x40216a
mov al, byte [esi]
jmp 0x40216c
xor al, al
mov cl, byte [ebx + 0x16]
cmp cl, byte [ebx + 0x17]
jb 0x4021ac
cmp al, 0xde
je 0x4021ac
cmp al, 0xca
je 0x4021ac
cmp al, 0xd8
je 0x4021ac
cmp al, 0xd9
je 0x4021ac
cmp al, 0xd4
je 0x4021ac
cmp al, 0xd5
je 0x4021ac
cmp al, 0xd6
je 0x4021ac
cmp al, 0xd7
je 0x4021ac
cmp byte [ebx + 0x1a], 0
je 0x40219e
mov byte [ebx + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xc], eax
jmp 0x4014f3
mov eax, dword [ebx + 4]
test eax, eax
je 0x4021cd
mov al, byte [eax]
cmp al, 2
je 0x4021cd
cmp al, 4
je 0x4021cd
cmp al, 5
jb 0x4021d1
mov edx, dword [0x4c86bc]
mov dword [esp + 0x58], edx
jmp 0x4021d1
mov dword [esp + 0x58], edi
mov edi, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x54]
push edi
call fcn.0046f7b0
add esp, 4
sub eax, 0
je 0x4021ef
dec eax
jne 0x4021fa
mov edi, dword [edi + 8]
test edi, edi
je 0x4021fa
mov al, byte [edi]
jmp 0x4021fc
xor al, al
mov ecx, dword [0x4c86a8]
mov edx, dword [0x4c4928]
mov byte [esp + 0x7c], al
cmp ecx, edx
jl 0x40225d
add edx, 2
cmp ecx, edx
jge 0x402237
cmp al, 0xde
je 0x40225d
cmp al, 0xca
je 0x40225d
cmp al, 0xd8
je 0x40225d
cmp al, 0xd9
je 0x40225d
cmp al, 0xd4
je 0x40225d
cmp al, 0xd5
je 0x40225d
cmp al, 0xd6
je 0x40225d
cmp al, 0xd7
je 0x40225d
cmp dword [esp + 0x24], 0
je 0x4014f3
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x68], 0
jmp 0x4014f3
mov edx, dword [0x4c4a14]
cmp ebx, dword [edx + 0x2c]
jge 0x40228e
cmp dword [esp + 0x24], 0
je 0x4014f3
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x68], 0
jmp 0x4014f3
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x12], 1
cmp eax, 0x402
je 0x4022ff
cmp eax, 0x413
jbe 0x4022b0
cmp eax, 0x415
jbe 0x402346
mov edx, dword [0x4ca168]
mov ecx, dword [0x4ca1d0]
mov dword [0x4ca16c], edx
mov dword [0x4ca1d4], ecx
cmp eax, 0x401
jne 0x4022e5
mov edx, dword [esi + 4]
mov dword [0x4ca168], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ca1d0], eax
jmp 0x402346
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x1c]
mov dword [0x4ca168], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ca1d0], eax
jmp 0x402346
mov edi, dword [esp + 0x74]
mov edx, dword [edi]
push 0x104
push edx
push 0x4c9d54
call fcn.004908f4
xor eax, eax
mov word [0x4c9f5c], ax
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
add esp, 0xc
push 0x104
push edx
push 0x4c9f5e
call fcn.004908f4
add esp, 0xc
xor eax, eax
mov word [0x4ca166], ax
mov dword [0x4c9d50], edi
mov ecx, dword [0x4c8d38]
push 0
push 1
call fcn.00401220
push 0x7f
push eax
lea ecx, [esp + 0x1a8]
push ecx
call fcn.004908f4
mov eax, dword [esp + 0x88]
add esp, 0xc
push eax
xor edx, edx
push edx
push ebx
mov al, 1
mov word [esp + 0x2aa], dx
call fcn.00403500
mov ebx, dword [0x4c4a14]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ca20c], eax
mov dword [0x4ca208], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4023b5.1027
movzx ecx, byte [eax + 0x402ec8]
jmp dword [ecx*4 + 0x402eb4]
mov esi, dword [esp + 0x14]
xor edx, edx
mov word [esp + 0x88], dx
cmp byte [esp + 0x13], dl
je 0x4023d4
mov ecx, dword [esi]
jmp 0x4023db
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0x2c]
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0xd0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
xor edx, edx
mov dword [eax + 8], 1
mov dword [eax + 4], edx
inc edi
lea eax, [ecx - 5]
mov dword [esp + 0x2c], edi
cmp eax, 4
ja case.default.0x40240d
jmp dword [eax*4 + 0x402ee0]
xor eax, eax
cmp dword [esp + 0x28], edx
mov dword [esp + 0x28], edx
sete al
lea eax, [eax + eax + 1]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0x3c], ecx
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x40], eax
cmp esi, edx
je 0x4024e3
cmp dword [ebx + 0x34], 1
jne 0x402451
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0x3c]
push eax
call fcn.004693d0
movzx eax, byte [esi + 4]
sub eax, 9
je 0x4024cc
dec eax
je 0x4024be
dec eax
jne 0x4024e3
cmp dword [ebx + 0x34], 1
jne 0x40247d
mov ecx, dword [esi]
push eax
push 9
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4024df
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa8], edx
mov edx, dword [esi]
push ecx
push edx
mov dword [esp + 0xb4], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi]
lea eax, [esp + 0xa8]
push eax
push 0
push 0x1111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4024df
mov edx, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push edx
jmp 0x4024d8
mov eax, dword [esi]
push 0
push 0
push 0x19f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea esi, [ebx + 0x3c]
call fcn.004759f0
cmp dword [esp + 0x14], 0
mov ecx, 1
je 0x40251f
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0xd0]
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 0x402538
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0xd0]
inc edi
mov dword [eax + 8], 0
mov dword [eax], 0x4a1868
mov edx, edi
add edx, edx
mov dword [esp + edx*8 + 0xd8], ecx
mov dword [esp + edx*8 + 0xd4], 0
lea eax, [esp + edx*8 + 0xd0]
mov edx, dword [esp + 0x28]
mov dword [eax], edx
add edi, ecx
mov eax, edi
add eax, eax
lea esi, [esp + eax*8 + 0xd0]
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 + 0xd0]
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 + 0xd0]
mov eax, dword [ebx + 0x40]
cdq
mov dword [esi + 8], ecx
add edi, ecx
mov ecx, dword [esp + 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [esp + 0x14]
jmp 0x4028db
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x50]
mov dword [esi + 4], eax
mov ecx, dword [ecx + 4]
call fcn.004759f0
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0xc]
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 + 0xd0]
push edx
mov dword [esp + 0x30], ecx
call fcn.0045dcf0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp dword [esp + 0x14], 0
mov dword [ecx + 8], 6
mov dword [ecx], eax
je 0x402656
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
lea eax, [edi + 1]
add eax, eax
lea eax, [esp + eax*8 + 0xd0]
mov dword [eax + 8], 1
mov dword [eax], ecx
mov dword [eax + 4], 0
jmp 0x40266f
lea edx, [edi + 1]
add edx, edx
lea eax, [esp + edx*8 + 0xd0]
mov dword [eax + 8], 0
mov dword [eax], 0x4a1868
mov edx, dword [esp + 0xc]
mov esi, dword [esi]
add edi, 2
mov eax, edi
add eax, eax
cmp byte [edx + 0xc0], 0
lea ecx, [esp + eax*8 + 0xd0]
mov dword [esp + 0x2c], ecx
je 0x4026a1
mov eax, dword [0x4c96c4]
push eax
push 0x60
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4026a3
mov eax, esi
mov ecx, dword [esp + 0x2c]
cdq
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc]
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 + 0xd0]
mov dword [esp + 0x2c], edi
je 0x4026e7
mov ecx, dword [0x4c96c4]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x34]
cdq
mov dword [esi + 8], 1
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [esp + 0x14]
jmp 0x4028df
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x4028df
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x28]
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0xd0]
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 + 0xd0]
movzx eax, dx
mov edx, dword [esp + 0xc]
cmp byte [edx + 0xc0], 0
je 0x40276a
mov ecx, dword [0x4c96c4]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x34]
cdq
mov dword [esi + 4], edx
lea edx, [edi + 2]
mov dword [esi], eax
mov eax, dword [esp + 0x80]
add edx, edx
mov dword [esi + 8], 1
lea esi, [esp + edx*8 + 0xd0]
mov edx, dword [esp + 0xc]
add edi, 3
shr eax, 0x10
cmp byte [edx + 0xc0], 0
mov dword [esp + 0x2c], edi
je 0x4027b5
mov ecx, dword [0x4c96c4]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x34]
cdq
mov dword [esi + 8], 1
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [esp + 0x14]
jmp 0x4028df
mov al, byte [esi + 4]
cmp al, 0xa
je 0x4027ff
cmp al, 0x19
jne 0x40289a
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x50]
mov dword [esi + 4], eax
mov ecx, dword [ecx + 4]
call fcn.004759f0
mov esi, dword [esp + 0x14]
jmp 0x402896
cmp cl, 0x49
jne 0x40289a
lea eax, [esp + 0x88]
test ecx, 0x100
je 0x402826
mov edx, 0x53
mov word [esp + 0x88], dx
jmp 0x40283b
test ecx, 0x200
je 0x402842
mov eax, 0x73
mov word [esp + 0x88], ax
lea eax, [esp + 0x8a]
test ecx, 0x400
je 0x402851
mov edx, 0x46
jmp 0x40285e
test ecx, 0x800
je 0x402864
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x402876
mov ecx, 0x43
mov word [eax], cx
jmp 0x402886
test ecx, 0x2000
je 0x402889
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x34], 0x49
mov ecx, dword [esp + 0x34]
mov edx, edi
add edx, edx
mov dword [ebx + 0x34], ecx
lea edx, [esp + edx*8 + 0xd0]
mov eax, ecx
mov dword [edx + 8], 0
call fcn.0045dcd0
mov dword [edx], eax
mov edx, dword [esp + 0x28]
lea eax, [edi + 1]
add eax, eax
lea eax, [esp + eax*8 + 0xd0]
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 + 0x13], 0
je 0x40299c
cmp byte [esi + 4], 0x17
jne 0x40299c
push 0x10b8
lea eax, [esp + 0x2a4]
push 0
push eax
call fcn.00496ad0
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x2a0]
push edx
push 0
push 0x703
dec ecx
push eax
mov dword [esp + 0x2b0], 0xd
mov dword [esp + 0x2b4], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402a00
cmp word [esp + 0x310], 0
lea eax, [esp + 0x310]
jne 0x40295b
lea eax, [esp + 0x2b0]
mov ecx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.00477510
mov ecx, dword [0x4c8d38]
mov edx, edi
push 0
add edx, edx
inc edi
push 1
lea esi, [esp + edx*8 + 0xd8]
mov dword [esp + 0x34], edi
call fcn.00401220
mov dword [esi + 8], 0
mov dword [esi], eax
mov esi, dword [esp + 0x14]
jmp 0x402a00
cmp word [esp + 0x88], 0
je 0x4029c7
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0xd0]
inc edi
lea edx, [esp + 0x88]
mov dword [esp + 0x2c], edi
mov dword [eax + 8], 0
mov dword [eax], edx
cmp ecx, 8
je 0x4029ed
cmp ecx, 5
je 0x4029ed
mov ecx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
push ecx
call fcn.00477510
jmp 0x402a00
mov edx, dword [esp + 0x28]
mov eax, dword [0x4c8d38]
push 0x18
push 0
push edx
call fcn.004010e0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x78]
mov dword [ebx + 0xc4], ecx
add dword [eax + 0x20], 2
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x38], eax
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x402a32
mov byte [ebx], 1
jmp 0x402a3d
cmp byte [esp + 0x13], 0
je 0x402a3d
or byte [esi + 5], 4
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xd4]
push edx
push 0x4a18cc
push esi
xor eax, eax
mov edx, edi
mov ecx, esi
call fcn.0046c850
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp dword [eax + 4], 0
je 0x402b0e
test ebx, ebx
je 0x402ab7
cmp dword [esp + 0x34], 6
mov byte [ebx], 0
jne 0x402ac6
cmp dword [esp + 0x84], 0
jne 0x402b0e
push esi
call fcn.0046f7b0
add esp, 4
test eax, eax
jne 0x402aa0
test esi, esi
jne 0x402b0e
mov eax, dword [esp + 0xc]
call fcn.004651b0
mov esi, dword [esp + 0xc]
call fcn.0045db10
jmp 0x402cbb
cmp byte [esp + 0x13], 0
je 0x402ac6
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
cmp dword [esp + 0x34], 5
jne 0x402b0e
mov eax, dword [esp + 0xe0]
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 esi, dword [esp + 0xc]
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 + 0xc]
call fcn.0045db10
jmp 0x402cbb
mov edi, dword [esp + 0xc]
xor esi, esi
cmp edi, esi
je 0x402b40
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, 0x4c9718
mov dword [esp + 0x138], esi
mov dword [esp + 0x130], 0x4c9d54
call fcn.00445240
xor ecx, ecx
mov dword [esp + 0x144], ecx
push esi
inc eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x148], eax
xor eax, eax
push 0x4a18cc
push ecx
lea edx, [eax + 3]
mov dword [esp + 0x158], 1
mov dword [esp + 0x168], esi
mov dword [esp + 0x160], 0x4c9f5e
call fcn.0046c850
add esp, 0x10
cmp edi, esi
je 0x402cbb
mov esi, dword [esp + 0xc]
call fcn.0045db10
jmp 0x402cbb
mov edx, dword [esp + 0x58]
mov dword [ebx + 0xc4], edx
mov al, byte [esi + 0x21]
mov byte [ebx + 0xf6], al
call fcn.0040c9c0
jmp 0x402cbb
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x402c0b
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x402c04
push 0xf
call esi
test eax, eax
jne 0x402c04
mov eax, 2
jmp 0x402c0d
mov eax, 1
jmp 0x402c0d
xor eax, eax
push 0x18
push 0
mov dword [ebx + 0x38], eax
push eax
mov eax, dword [0x4c8d38]
call fcn.004010e0
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0xb8], ecx
mov ecx, dword [0x4ca1a0]
mov dword [esp + 0xc0], 1
mov dword [esp + 0xbc], 0
mov byte [0x4ca1ac], 1
test ecx, ecx
je 0x402c5b
call fcn.00401290
mov ecx, dword [0x4ca1a0]
cmp dword [esp + 0x40], 0
jne 0x402c7e
xor edx, edx
test ecx, ecx
sete dl
lea eax, [esp + 0xb8]
mov ebx, 0x4ca180
push edx
push 1
push eax
call fcn.0046f8b0
mov byte [0x4ca1ac], 0
jmp 0x402cbb
mov esi, dword [esp + 0x6c]
mov al, byte [esi + 0x10]
cmp al, 0x9c
jb 0x402c9d
cmp al, 0x9f
ja 0x402c9d
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x38], ecx
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [ebx + 0xc4], edx
mov cl, byte [eax + 0x18]
push eax
push esi
mov byte [ebx + 0xf6], cl
call fcn.0040a7f0
lea edx, [esp + 0x1a0]
push edx
call fcn.00403600
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4014f3
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.00402f00
add esp, 8
test eax, eax
je 0x4014f3
mov byte [esp + 0x1b], 1
mov byte [esp + 0x60], 1
jmp 0x4014f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402d62
mov eax, dword [0x4c4a14]
lea edx, [esp + 0x38]
mov byte [eax + 0xe8], 1
mov ecx, dword [esp + 0x3c]
push edx
push esi
mov dword [eax + 0xe4], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x402d55
cmp dword [0x4c86d4], 0
je 0x402d44
push 0x4c8d40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x4c4a14]
mov byte [eax + 0xe8], 0
jmp 0x4014f3
mov ecx, dword [0x4c4a14]
mov byte [ecx + 0xe8], 0
mov eax, dword [0x4c854c]
test eax, eax
je 0x402d85
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [0x4c8538]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4014f3
mov eax, dword [0x4c4a14]
mov byte [eax + 0xe8], 1
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
push edx
mov dword [eax + 0xe4], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x4c4a14]
mov byte [ecx + 0xe8], 0
jmp 0x4014f3
cmp ebx, 0xffffffff
jle 0x402de1
mov dword [0x4ca1f8], 0
mov dword [0x4ca1fc], 0
mov dword [0x4ca208], eax
cmp byte [esp + 0x23], 0
mov dword [0x4ca20c], eax
je 0x402df4
mov byte [0x4c8695], 0
cmp byte [esp + 0x1a], 0
je 0x401d23
dec dword [0x4c86a4]
test ebx, ebx
jle 0x401d23
cmp dword [0x4c86a4], 0
jne 0x401d23
cmp dword [0x4ca1c0], 0
jne 0x401d23
cmp dword [0x4c8fa0], 0
jne 0x401d23
cmp byte [0x4c868f], 0
je 0x401d23
mov edx, dword [0x4c8538]
push 9
push edx
jmp 0x401d12