Function at 0x401930
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, 0x13ac
call fcn.004d0b30
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov byte [esp + 0x1e], 0
lea ebx, [edi + 1]
jne 0x401969
cmp byte [0x51603a], 0
mov dword [ebp + 0xc], ebx
jne 0x401969
mov byte [0x51603a], bl
mov byte [esp + 0x1e], bl
cmp dword [0x517a00], edi
je 0x40199d
cmp dword [0x5179f0], edi
je 0x40198b
mov eax, dword [0x5179e8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5179f0], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x517a00], edi
mov dword [0x5179e8], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x4019bd
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x64], 1
mov dword [esp + 0x74], edi
jmp 0x4019db
cmp esi, 5
setle al
mov byte [esp + 0x64], al
test al, al
je 0x4019d1
mov dword [esp + 0x74], edi
jmp 0x4019db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x74], eax
cmp dword [0x516748], edi
je 0x4019e8
call fcn.00403940
mov byte [esp + 0x13], 0
cmp dword [0x517954], edi
je 0x401a03
call fcn.00403760
test al, al
je 0x401a03
mov byte [esp + 0x13], 1
cmp esi, edi
jle 0x401c8d
cmp dword [ebp + 0xc], ebx
jne 0x401c8d
add dword [0x516048], ebx
cmp byte [0x516034], 0
mov byte [esp + 0x1d], 1
jne 0x401a45
mov ecx, dword [0x515edc]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x516034], dl
mov byte [esp + 0x33], 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x78], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov edi, eax
mov dword [esp + 0x58], edi
cmp dword [0x5112ac], ebx
jg 0x401aab
mov esi, dword [0x5112b8]
mov dword [0x5112ac], ebx
cmp esi, 0xffffffff
jne 0x401a87
mov esi, dword fs:[0x30]
mov dword [0x5112b8], esi
call fcn.004012f0
cmp esi, ebx
je 0x401c97
movzx eax, byte [esi + 2]
mov dword [0x5112ac], eax
cmp eax, ebx
je 0x401aab
mov dword [0x515ec4], 0xde
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x401caf
cmp byte [esp + 0x1f], 0
jne 0x401caf
cmp byte [0x51603a], 0
jne 0x401cbc
call fcn.00403f10
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 0x401a53
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, edi
cmp ecx, 3
jbe 0x401b0e
mov dword [0x5179a0], eax
inc dword [esp + 0x78]
cmp dword [0x516ea0], 0
je 0x401b47
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 + 0x34]
call fcn.004039b0
add esp, 0x10
test al, al
jne 0x401a53
cmp dword [0x51667c], 0
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
je 0x4021b0
test ebx, ebx
je 0x4021b0
cmp ebx, dword [0x515edc]
je 0x4021b0
cmp ecx, 0x414
je 0x4021b0
cmp ecx, 0x402
je 0x4021b0
lea edx, [ecx - 0x100]
cmp edx, 9
ja 0x402141
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x402147
call fcn.004ac160
mov edi, eax
test edi, edi
je 0x402147
mov eax, esi
call fcn.0045c6c0
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x402147
mov eax, dword [esi + 0x74]
test eax, eax
je 0x401beb
lea ecx, [esp + 0x38]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401a53
cmp dword [esp + 0x3c], 0x100
mov edi, dword [esp + 0x40]
jne 0x4020fa
cmp byte [esi + 0xb8], 0
je 0x402048
cmp edi, 0x22
je 0x401c27
cmp edi, 0x21
je 0x401c27
cmp edi, 9
je 0x401c27
cmp edi, 0x25
je 0x401c27
cmp edi, 0x27
jne 0x402048
mov eax, dword [esp + 0x18]
mov ebx, esi
call fcn.00401820
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x402036
mov al, byte [ebx + 4]
cmp al, 0xf
je 0x402036
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], 0
cmp al, 0x13
jne 0x401f64
mov dword [esp + 0x24], ebx
cmp edi, 0x25
je 0x401c71
cmp edi, 0x27
jne 0x401f64
cmp edi, 0x27
sete dl
push 0
movzx eax, dl
push 0
push eax
mov eax, ebx
mov ecx, esi
call fcn.004698b0
jmp 0x401a53
mov byte [esp + 0x1d], 0
jmp 0x401a45
cmp eax, ebx
je 0x401ca4
movzx eax, byte [eax + 2]
jmp 0x401a98
mov dword [0x5112ac], ebx
jmp 0x401aab
cmp byte [0x51603a], 0
je 0x401e58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401e58
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x516e90]
jne 0x401e58
cmp dword [0x516080], 0
je 0x401d44
push 0x20
lea edx, [esp + 0x1c4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.qa_eeb
call fcn.0049fc00
add esp, 4
lea ecx, [esp + 0x1c0]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401d36
test dx, dx
je 0x401d32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401d36
add ecx, 4
add eax, 4
test dx, dx
jne 0x401d10
xor eax, eax
jmp 0x401d3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x401dab
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x401e58
push 0x20
lea ecx, [esp + 0x1c4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x4e19dc
call fcn.0049fc00
add esp, 4
push eax
lea edx, [esp + 0x1c4]
push edx
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x401dab
push 0x4e1a08
call fcn.0049fc00
add esp, 4
push eax
lea eax, [esp + 0x1c4]
push eax
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x401e58
call fcn.00403f10
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 0x401df1
push 1
push esi
push 0x20e
push eax
lea edx, [esp + 0x48]
push edx
call edi
jmp 0x401ed7
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 0x401e22
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x48]
push ecx
call edi
mov ebx, dword [ebp + 8]
jmp 0x401ed7
mov edx, dword [esp + 0x4c]
sub edx, ebx
test edx, edx
jle 0x401e44
push 0x1ff
push 0
push 0
lea eax, [esp + 0x48]
push eax
call edi
mov ebx, dword [ebp + 8]
jmp 0x401ed7
push esi
push 0x20e
push 0
lea ecx, [esp + 0x48]
push ecx
call edi
mov ebx, dword [ebp + 8]
jmp 0x401ed7
cmp dword [0x511524], 0
je 0x401eb5
cmp dword [0x516074], 0
jne 0x401eb5
mov eax, dword [0x51161c]
cmp byte [eax + 0xec], 0
jne 0x401eac
cmp byte [eax + 0xee], 0
jne 0x401eac
cmp dword [eax + 0xe0], 0xffffffff
jle 0x401eac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x51161c]
sub edx, dword [eax + 0xdc]
cmp edx, dword [eax + 0xe0]
jb 0x401eac
mov byte [eax + 0xec], 1
movzx eax, byte [eax + 0xec]
jmp 0x401eb7
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 0x401b0e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [esp + 0x58]
cmp ecx, 3
jbe 0x401ef7
mov dword [0x5179a0], eax
test ebx, ebx
jne 0x401f12
cmp byte [esp + 0x33], bl
jne 0x401f12
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x33], 1
jmp 0x401a53
cmp dword [esp + 0x78], 0
jne 0x401f39
cmp byte [esp + 0x64], 0
je 0x401f39
test ebx, ebx
jle 0x401f2c
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x78], 1
jmp 0x401a53
call esi
cmp byte [esp + 0x64], 0
jne 0x403594
mov edx, dword [esp + 0x74]
sub edx, eax
add edx, ebx
cmp edx, 5
jle 0x403594
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401a53
cmp edi, 0x25
je 0x40203a
cmp edi, 0x27
je 0x40203a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x402036
mov edi, dword [esp + 0x40]
cmp edi, 9
jne 0x401fb2
cmp byte [ebx + 4], 0xc
jne 0x401fb2
mov edx, dword [ebx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x402036
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x24], 0
jne 0x401fda
mov bl, byte [ebx + 6]
mov ecx, esi
call fcn.004695f0
mov dword [esp + 0x24], eax
test eax, eax
jne 0x401fda
xor bl, bl
call fcn.004695f0
mov dword [esp + 0x24], eax
test eax, eax
je 0x40203a
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x402036
mov eax, dword [esp + 0x40]
cmp eax, 0x22
je 0x402020
cmp eax, 9
jne 0x40200b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x402020
xor al, al
push 1
push 1
mov ecx, esi
push eax
mov eax, edi
call fcn.004698b0
jmp 0x401a53
mov eax, 1
push eax
push eax
push eax
mov eax, edi
mov ecx, esi
call fcn.004698b0
jmp 0x401a53
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x3c], 0x100
jne 0x4020fa
cmp edi, 0x1b
je 0x402084
cmp edi, 9
je 0x402084
cmp edi, 0x41
jne 0x4020fa
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov edx, 0x8000
test dx, ax
je 0x4020f6
push 0xa5
call edi
mov ecx, 0x8000
test cx, ax
jne 0x4020f6
mov eax, dword [esp + 0x18]
mov ebx, esi
call fcn.00401820
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020f6
mov edx, eax
cmp byte [edx + 4], 0xc
jne 0x4020f6
mov edi, dword [esp + 0x40]
cmp edi, 0x1b
je 0x4020ea
cmp edi, 0x41
je 0x4020cd
test byte [eax + 5], 0x80
je 0x4020fa
mov eax, dword [eax]
push 0x4e1a34
push 1
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401a53
test byte [eax + 5], 2
jne 0x4020fa
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401a53
mov eax, esi
call fcn.00466050
jmp 0x401a53
mov edi, dword [esp + 0x40]
mov eax, dword [0x516e10]
test eax, eax
je 0x40214b
cmp dword [esp + 0x3c], 0x100
jne 0x40214b
cmp edi, 0xd
jne 0x402127
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401a53
cmp edi, 0x1b
jne 0x40214b
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401a53
mov edi, dword [esp + 0x40]
jmp 0x402153
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor esi, esi
cmp dword [0x51667c], esi
jle 0x4021b4
mov eax, dword [0x51161c]
mov ecx, dword [0x516678]
mov byte [eax + 0xe8], 1
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xe4], edx
mov edx, dword [ecx + esi*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 0x403582
mov eax, dword [0x51161c]
inc esi
mov byte [eax + 0xe8], 0
cmp esi, dword [0x51667c]
jl 0x402162
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
cmp ecx, 0x401
ja 0x402395
cmp ecx, 0x400
jae case.0x4023ab.1045
cmp ecx, 0x100
ja 0x402228
je 0x402207
cmp ecx, 0x12
je 0x4021f4
cmp ecx, 0x4b
jne case.0x4023ab.1027
mov dword [0x516014], 0
mov byte [esp + 0x1f], 1
jmp 0x401a53
push 0
push 5
push 0x516ea8
call fcn.0041e5a0
jmp 0x401a53
cmp ebx, dword [0x515ee0]
jne case.0x4023ab.1027
cmp edi, 0x1b
jne case.0x4023ab.1027
mov edx, dword [0x515edc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x401a53
cmp ecx, 0x113
je 0x4022c1
cmp ecx, 0x312
je case.0x4023ab.1026
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x403532
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x516e90]
jne 0x403532
push 0x20
lea ecx, [esp + 0x1c4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.qa_eeb
call fcn.0049fc00
add esp, 4
lea ecx, [esp + 0x1c0]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4034c0
test dx, dx
je 0x4022ba
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4034c0
add ecx, 4
add eax, 4
test dx, dx
jne 0x402290
xor eax, eax
jmp 0x4034c5
cmp dword [esp + 0x44], 0
jne case.0x4023ab.1027
cmp ebx, dword [0x515edc]
jne case.0x4023ab.1027
cmp dword [0x516748], 0
je 0x4022e6
call fcn.00403940
cmp dword [0x517954], 0
je 0x4022fd
call fcn.00403760
test al, al
je 0x4022fd
mov byte [esp + 0x13], 1
cmp dword [ebp + 0xc], 0
je 0x401a53
cmp dword [ebp + 8], 1
jl 0x401a53
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.00403720
add esp, 8
test eax, eax
je 0x401a53
cmp byte [esp + 0x1e], 0
je 0x40233c
mov byte [0x51603a], 0
cmp byte [esp + 0x1d], 0
je 0x40238a
dec dword [0x516048]
test esi, esi
jle 0x40238a
cmp dword [0x516048], 0
jne 0x40238a
cmp dword [0x517954], 0
jne 0x40238a
cmp dword [0x516748], 0
jne 0x40238a
cmp byte [0x516034], 0
je 0x40238a
mov eax, dword [0x515edc]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x40238a
mov byte [0x516034], 0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x402]
cmp eax, 0x1b
ja case.0x4023ab.1027
movzx edx, byte [eax + 0x40362c]
jmp dword [edx*4 + 0x403620]
test ebx, ebx
je case.0x4023ab.1026
cmp ebx, dword [0x515edc]
jne case.0x4023ab.1027
xor edx, edx
lea eax, [ecx - 0x401]
mov dword [esp + 0x24], edx
cmp eax, 0x1c
ja case.0x4023de.1027
movzx eax, byte [eax + 0x403664]
jmp dword [eax*4 + 0x403648]
mov esi, ebx
call fcn.0045c690
mov dword [esp + 0xc], eax
test eax, eax
je case.0x4023ab.1027
mov eax, dword [esp + 0x44]
movzx ecx, di
shr edi, 0x10
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x54], ebx
cmp ecx, 8
jne 0x402430
mov dword [esp + 0x7c], 0x2af8
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc]
cmp edi, dword [eax + 0x10]
jae 0x402448
mov esi, dword [eax + 0x18]
lea edx, [edi + edi*4]
lea edx, [esi + edx*4]
mov dword [esp + 0x14], edx
jmp 0x40244c
mov dword [esp + 0x14], ebx
add ecx, 0xfffffffb
mov dword [esp + 0x60], ebx
mov byte [esp + 0x12], bl
cmp ecx, 4
ja case.default.0x402460
jmp dword [ecx*4 + 0x403684]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x401a53
mov eax, dword [esp + 0xc]
add eax, 0x3a
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x402491
cmp byte [eax], bl
jne 0x401a53
mov esi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x402836
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x401a53
mov ecx, dword [esp + 0xc]
add ecx, 0x38
mov dword [esp + 0x60], ecx
jmp 0x402481
mov eax, dword [eax + 0x28]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x401a53
mov edx, dword [esp + 0xc]
add edx, 0x39
mov dword [esp + 0x60], edx
jmp 0x402481
mov eax, dword [eax + 0x34]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x401a53
mov esi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x402836
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x402521
cmp esi, ebx
je 0x401a53
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x402491
cmp esi, ebx
je 0x401a53
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x68], 0
jmp 0x401a53
cmp dword [esp + 0x14], ebx
je 0x401a53
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x402571
test byte [ecx + 5], 1
je 0x401a53
mov eax, dword [esp + 0xc]
call fcn.00465ff0
jmp 0x401a53
test byte [ecx + 5], 4
jne 0x401a53
mov esi, dword [esp + 0x28]
mov byte [esp + 0x12], 1
xor ebx, ebx
jmp 0x402836
cmp edi, edx
je 0x4025b0
mov esi, edi
call fcn.0045c690
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4025b4
test ebx, ebx
je 0x4025b4
cmp ebx, dword [0x515edc]
jne case.0x4023ab.1027
jmp 0x4025b4
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
mov eax, 0x516ea8
call fcn.00401870
mov dword [esp + 0x6c], eax
test eax, eax
je 0x401a53
mov ecx, eax
mov eax, dword [ecx + 8]
test eax, eax
je 0x401a53
mov esi, dword [esp + 0x28]
mov edx, ecx
mov ebx, dword [edx + 0x18]
mov dword [esp + 0x18], eax
jmp 0x402836
cmp edi, dword [0x516750]
jae 0x401a53
mov eax, dword [0x51674c]
mov edi, dword [eax + edi*4]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x68], edi
test esi, esi
je 0x40267c
mov ecx, dword [edi + 4]
push ecx
call fcn.0040a1f0
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
je 0x401a53
mov edx, edi
mov eax, dword [edx + 0x10]
mov al, byte [eax]
cmp al, 1
je 0x40263b
cmp al, 3
je 0x40263b
mov dword [esp + 0x5c], 0
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
push ecx
push edi
call fcn.0040d350
cmp dword [edi + 0xc], 0
jne 0x401a53
mov eax, dword [esp + 0x68]
cmp byte [eax + 0x2a], 0
je 0x402682
mov dx, word [esp + 0x44]
mov esi, dword [esp + 0x28]
mov word [0x51796c], dx
mov edx, dword [eax]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x18], edx
jmp 0x402836
mov dword [esp + 0x5c], edx
jmp 0x40263f
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov word [0x51796c], cx
mov edx, dword [eax]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x18], edx
jmp 0x402836
cmp byte [0x517940], dl
jne 0x401a53
mov eax, dword [0x517934]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4026bf
mov eax, dword [0x5174e0]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x402836
mov esi, edi
call fcn.00435ad0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x401a53
mov esi, dword [esp + 0x28]
mov ecx, eax
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x35c]
mov dword [esp + 0x18], eax
xor ebx, ebx
jmp 0x402836
mov eax, dword [0x5166e4]
mov dword [esp + 0x2c], eax
cmp eax, edx
je 0x401a53
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x402720
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x402708
jmp 0x401a53
test eax, eax
je 0x401a53
cmp ecx, 0x41c
jne 0x40273f
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x360]
jmp 0x40274c
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x364]
mov dword [esp + 0x18], eax
test eax, eax
je 0x401a53
mov esi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x402836
mov ecx, dword [0x51164c]
mov edx, edi
and edx, 0x7fff
mov eax, edx
cmp ax, word [ecx]
jae 0x401a53
movzx edx, ax
mov eax, dword [0x51672c]
mov ecx, dword [eax + edx*4]
shr edi, 0x10
mov eax, edi
mov dword [esp + 0x70], ecx
test ax, ax
je 0x4027c7
mov edx, ecx
mov esi, dword [edx + 0x20]
add eax, 0xffff
mov dword [esp + 0x28], esi
test ax, ax
je 0x4027c3
jmp 0x4027b0
mov ecx, dword [esi + 8]
add eax, 0xffff
mov dword [esp + 0x28], ecx
mov esi, ecx
test ax, ax
jne 0x4027b0
test esi, esi
jne 0x4027e3
mov edx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x60]
call fcn.0040ad10
mov dword [esp + 0x28], eax
test eax, eax
je 0x401a53
mov esi, eax
mov edi, esi
call fcn.004018a0
test al, al
jne 0x402805
cmp byte [esi + 0x1a], al
je 0x4027f7
mov byte [esi + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
jmp 0x401a53
mov eax, dword [esi + 4]
test eax, eax
je 0x402825
mov al, byte [eax]
cmp al, 2
je 0x402825
cmp al, 4
je 0x402825
cmp al, 5
jb 0x40282d
mov eax, dword [0x516068]
mov dword [esp + 0x5c], eax
jmp 0x40282d
mov dword [esp + 0x5c], 0
mov ecx, dword [esi]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x18]
push edi
call fcn.0049cb60
add esp, 4
sub eax, 0
je 0x40284b
dec eax
jne 0x402857
mov eax, dword [edi + 8]
test eax, eax
je 0x402857
movzx edi, word [eax]
jmp 0x402859
xor edi, edi
mov eax, dword [0x51604c]
mov ecx, dword [0x511530]
cmp eax, ecx
jl 0x402906
add ecx, 2
cmp eax, ecx
jge 0x4028c7
mov edx, 0xde
cmp di, dx
je 0x402906
mov eax, 0xca
cmp di, ax
je 0x402906
mov ecx, 0xd8
cmp di, cx
je 0x402906
mov edx, 0xd9
cmp di, dx
je 0x402906
mov eax, 0xd4
cmp di, ax
je 0x402906
mov ecx, 0xd5
cmp di, cx
je 0x402906
mov edx, 0xd6
cmp di, dx
je 0x402906
mov eax, 0xd7
cmp di, ax
je 0x402906
cmp dword [esp + 0x24], 0
je 0x4028e4
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x68], 0
cmp dword [esp + 0x3c], 0x41b
jne 0x401a53
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x401a53
mov eax, dword [0x51161c]
cmp ebx, dword [eax + 0x2c]
jge 0x40294f
cmp dword [esp + 0x24], 0
je 0x40292d
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x68], 0
cmp dword [esp + 0x3c], 0x41b
jne 0x401a53
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x401a53
mov ecx, dword [esp + 0x3c]
lea eax, [ecx - 0x402]
mov byte [esp + 0x13], 1
cmp eax, 0x1b
ja case.0x40296a.1027
movzx eax, byte [eax + 0x4036a4]
jmp dword [eax*4 + 0x403698]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
push 0x104
push edx
push 0x5174e8
call fcn.004c67b5
mov ecx, dword [esp + 0x78]
xor eax, eax
mov word [0x5176f0], ax
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
add esp, 0xc
push 0x104
push eax
push 0x5176f2
call fcn.004c67b5
mov edx, dword [esp + 0x78]
add esp, 0xc
xor ecx, ecx
mov word [0x5178fa], cx
mov dword [0x5174e4], edx
jmp case.0x40296a.1044
mov eax, dword [0x5178fc]
mov edx, dword [0x517964]
mov dword [0x517900], eax
mov dword [0x517968], edx
cmp ecx, 0x401
jne 0x4029f0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov dword [0x5178fc], ecx
jmp 0x4029fc
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 0x1c]
mov dword [0x5178fc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x517964], eax
mov ecx, dword [0x5166e0]
push 0
push 1
call fcn.004016f0
push 0x7f
push eax
lea ecx, [esp + 0x208]
push ecx
call fcn.004c67b5
add esp, 0xc
xor edx, edx
push edi
push edx
push ebx
mov al, 1
mov word [esp + 0x30a], dx
call fcn.00403d30
mov ebx, dword [0x51161c]
add esp, 0xc
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5179a4], eax
mov dword [0x5179a0], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffbff
cmp eax, 0x1c
ja case.0x402a73.1027
movzx eax, byte [eax + 0x4036e0]
jmp dword [eax*4 + 0x4036c0]
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov word [esp + 0x90], cx
cmp byte [esp + 0x12], cl
je 0x402a92
mov ecx, dword [esi]
jmp 0x402a99
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 4]
mov edi, dword [esp + 0x54]
mov eax, edi
add eax, eax
lea eax, [esp + eax*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 + 0x54], edi
cmp eax, 4
ja case.default.0x402acb
jmp dword [eax*4 + 0x403700]
xor ecx, ecx
cmp dword [esp + 0x20], edx
mov dword [esp + 0x20], edx
sete cl
lea ecx, [ecx + ecx + 1]
mov dword [ebx + 0x34], ecx
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x40], ecx
cmp esi, edx
je 0x402ba1
cmp dword [ebx + 0x34], 1
jne 0x402b0f
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0x3c]
push eax
call fcn.0046a180
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402b8a
dec eax
je 0x402b7c
dec eax
jne 0x402ba1
cmp dword [ebx + 0x34], 1
jne 0x402b3b
mov edx, dword [esi]
push eax
push 9
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402b9d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0xb0]
mov dword [esp + 0xb0], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0xbc], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi]
lea ecx, [esp + 0xb0]
push ecx
push 0
push 0x1111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402b9d
mov eax, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
jmp 0x402b96
mov ecx, dword [esi]
push 0
push 0
push 0x19f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 4]
lea esi, [ebx + 0x3c]
call fcn.004a85d0
mov eax, edi
add eax, eax
cmp dword [esp + 0x14], 0
mov ecx, 1
lea eax, [esp + eax*8 + 0xd0]
je 0x402bdd
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 0x402beb
inc edi
mov dword [eax + 8], 0
mov dword [eax], 0x4e1a4c
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 + 0x20]
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 + 4], edx
mov dword [esi + 8], ecx
mov eax, edi
add eax, eax
lea esi, [esp + eax*8 + 0xd0]
mov eax, dword [ebx + 0x40]
cdq
add edi, ecx
mov dword [esi + 8], ecx
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x402f5d
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.004a85d0
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 + 0x5c], ecx
call fcn.0045ead0
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp dword [esp + 0x14], 0
mov dword [ecx + 8], 6
mov dword [ecx], eax
je 0x402d01
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 0x402d1a
lea edx, [edi + 1]
add edx, edx
lea eax, [esp + edx*8 + 0xd0]
mov dword [eax + 8], 0
mov dword [eax], 0x4e1a4c
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 + 0x58], ecx
je 0x402d4c
mov eax, dword [0x516e94]
push eax
push 0x60
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x402d4e
mov eax, esi
mov ecx, dword [esp + 0x58]
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 + 0x54], edi
je 0x402d92
mov ecx, dword [0x516e94]
push ecx
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 0x402f61
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x402f69
mov ecx, dword [esp + 0x80]
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0xd0]
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x3c], ecx
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 8], 1
mov dword [eax + 4], 0
lea eax, [edi + 1]
add eax, eax
cmp byte [edx + 0xc0], 0
lea esi, [esp + eax*8 + 0xd0]
movzx eax, cx
je 0x402e10
mov ecx, dword [0x516e94]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x80]
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
lea edx, [edi + 2]
mov eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], 1
add edx, edx
add edi, 3
shr eax, 0x10
cmp byte [ecx + 0xc0], 0
lea esi, [esp + edx*8 + 0xd0]
mov dword [esp + 0x54], edi
je 0x402d92
mov edx, dword [0x516e94]
push edx
jmp 0x402d89
mov al, byte [esi + 4]
cmp al, 0xa
je 0x402e83
cmp al, 0x19
jne 0x402f1a
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x40], ecx
mov ecx, dword [edx + 4]
lea esi, [ebx + 0x3c]
call fcn.004a85d0
jmp 0x402f1a
cmp cl, 0x49
jne 0x402f1a
lea eax, [esp + 0x90]
test ecx, 0x100
je 0x402eaa
mov eax, 0x53
mov word [esp + 0x90], ax
jmp 0x402ebf
test ecx, 0x200
je 0x402ec6
mov edx, 0x73
mov word [esp + 0x90], dx
lea eax, [esp + 0x92]
test ecx, 0x400
je 0x402ed5
mov edx, 0x46
jmp 0x402ee2
test ecx, 0x800
je 0x402ee8
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x402efa
mov ecx, 0x43
mov word [eax], cx
jmp 0x402f0a
test ecx, 0x2000
je 0x402f0d
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x34], 0x49
mov edx, ebx
mov ebx, dword [esp + 0x34]
mov eax, edi
add eax, eax
mov dword [edx + 0x34], ebx
lea esi, [esp + eax*8 + 0xd0]
call fcn.0045ea30
mov ebx, dword [esp + 0x58]
lea edx, [edi + 1]
mov dword [esi], eax
add edx, edx
lea eax, [esp + edx*8 + 0xd0]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esi + 8], ecx
add edi, 2
mov dword [eax + 8], 1
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [esp + 0x54], edi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
cmp byte [esp + 0x12], 0
je 0x403026
cmp byte [esi + 4], 0x17
jne 0x403026
push 0x10b8
lea eax, [esp + 0x304]
push 0
push eax
call fcn.004ce290
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x300]
push edx
push 0
push 0x703
dec ecx
push eax
mov dword [esp + 0x310], 0xd
mov dword [esp + 0x314], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40308a
cmp word [esp + 0x370], 0
lea eax, [esp + 0x370]
jne 0x402fe5
lea eax, [esp + 0x310]
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.004aa2a0
mov ecx, dword [0x5166e0]
mov edx, edi
push 0
add edx, edx
inc edi
push 1
lea esi, [esp + edx*8 + 0xd8]
mov dword [esp + 0x5c], edi
call fcn.004016f0
mov dword [esi + 8], 0
mov dword [esi], eax
mov esi, dword [esp + 0x14]
jmp 0x40308a
cmp word [esp + 0x90], 0
je 0x403051
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0xd0]
inc edi
lea edx, [esp + 0x90]
mov dword [esp + 0x54], edi
mov dword [eax + 8], 0
mov dword [eax], edx
cmp ecx, 8
je 0x403077
cmp ecx, 5
je 0x403077
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x9c]
push eax
push ecx
call fcn.004aa2a0
jmp 0x40308a
mov edx, dword [esp + 0x20]
mov eax, dword [0x5166e0]
push 0x18
push 0
push edx
call fcn.00401590
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x7c]
mov dword [ebx + 0xc4], ecx
add dword [eax + 0x20], 2
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x50], edx
test eax, eax
je 0x4030bc
mov byte [eax], 1
jmp 0x4030c7
cmp byte [esp + 0x12], 0
je 0x4030c7
or byte [esi + 5], 4
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push ecx
push edi
lea edx, [esp + 0xd8]
push edx
push 0x4e1a40
xor eax, eax
mov ecx, ebx
call fcn.00499bd0
mov esi, dword [esp + 0x1c]
add esp, 0x10
cmp dword [esi + 4], 0
je 0x403190
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40313d
cmp dword [esp + 0x34], 6
mov byte [eax], 0
jne 0x40314c
cmp dword [esp + 0x8c], 0
jne 0x403190
push ebx
call fcn.0049cb60
add esp, 4
test eax, eax
jne 0x403128
test ebx, ebx
jne 0x403190
mov eax, esi
call fcn.00465ff0
mov esi, dword [esp + 0xc]
call fcn.0045e860
jmp 0x40347a
cmp byte [esp + 0x12], 0
je 0x40314c
mov eax, dword [esp + 0x14]
and byte [eax + 5], 0xfb
cmp dword [esp + 0x34], 5
jne 0x403190
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 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.0045e860
jmp 0x40347a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4031c0
mov ecx, dword [eax + 4]
mov dword [ebx + 0xc4], ecx
mov dword [ebx + 0x34], 1
add dword [eax + 0x20], 2
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], eax
xor esi, esi
mov eax, 0x516ea8
mov dword [esp + 0x178], esi
mov dword [esp + 0x170], 0x5174e8
call fcn.004467e0
push esi
xor ecx, ecx
inc eax
push 3
lea edx, [esp + 0x178]
mov dword [esp + 0x18c], ecx
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18c], eax
push 0x4e1a40
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x198], 1
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x1a0], 0x5176f2
call fcn.00499bd0
mov esi, dword [esp + 0x1c]
add esp, 0x10
test esi, esi
je 0x40347a
call fcn.0045e860
jmp 0x40347a
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x68]
mov dword [ebx + 0xc4], eax
mov cl, byte [esi + 0x21]
mov byte [ebx + 0xf6], cl
call fcn.0040d290
jmp 0x40347a
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x403291
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x40328a
push 0xf
call esi
test eax, eax
jne 0x40328a
mov eax, 2
jmp 0x403293
mov eax, 1
jmp 0x403293
xor eax, eax
mov edx, dword [0x5166e0]
push edx
mov dword [ebx + 0x38], eax
call fcn.004016d0
mov eax, dword [ebx + 0x38]
mov ecx, dword [0x517934]
mov dword [esp + 0xc8], 1
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov byte [0x517940], 1
test ecx, ecx
je 0x4032de
call fcn.00401760
mov ecx, dword [0x517934]
cmp dword [esp + 0x40], 0
jne 0x403301
xor edx, edx
test ecx, ecx
sete dl
lea eax, [esp + 0xc0]
push edx
push 1
push eax
push 0x517914
call fcn.0049cc60
mov byte [0x517940], 0
jmp 0x40347a
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
push 0
push 1
lea edx, [esp + 0x138]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x4e1a40
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x148], 6
call fcn.00499bd0
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0x10
push eax
call edx
jmp 0x40347a
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x140], ecx
mov ecx, dword [esp + 0x44]
movzx eax, cl
cdq
mov dword [esp + 0x150], eax
sar ecx, 0x10
movzx eax, cx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x154], edx
cdq
push 0
mov dword [esp + 0x168], edx
push 3
lea edx, [esp + 0x148]
push edx
mov esi, 1
mov dword [esp + 0x16c], eax
push 0x4e1a40
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x158], 6
mov dword [esp + 0x168], esi
mov dword [esp + 0x178], esi
call fcn.00499bd0
add esp, 0x10
jmp 0x40347a
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 8]
mov word [esp + 0x84], ax
sar eax, 0x10
mov word [esp + 0x86], ax
xor eax, eax
push 0
mov word [esp + 0x8c], ax
mov dword [esp + 0x1bc], eax
push 2
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x90]
mov dword [esp + 0x1bc], eax
push 0x4e1a40
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x1b8], 6
mov dword [esp + 0x1b0], edx
call fcn.00499bd0
add esp, 0x10
jmp 0x40347a
mov edx, dword [esp + 0x70]
mov al, byte [edx + 0x10]
cmp al, 0x9c
jb 0x40345c
cmp al, 0x9f
ja 0x40345c
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x38], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
mov dword [ebx + 0xc4], ecx
mov dl, byte [esi + 0x18]
push esi
push eax
mov byte [ebx + 0xf6], dl
call fcn.0040b0a0
lea ecx, [esp + 0x200]
push ecx
call fcn.00403e40
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x401a53
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
mov esi, dword [ebp + 8]
push edx
push eax
call fcn.00403720
add esp, 8
test eax, eax
je 0x401a53
mov byte [esp + 0x1f], 1
mov byte [esp + 0x64], 1
jmp 0x401a53
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403532
mov eax, dword [0x51161c]
mov byte [eax + 0xe8], 1
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xe4], edx
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x403525
cmp dword [0x516080], 0
je 0x403513
mov eax, dword [0x511644]
test eax, eax
je 0x403507
mov eax, dword [eax]
test eax, eax
jne 0x40350c
mov eax, 0x4e1a4c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [0x51161c]
mov byte [ecx + 0xe8], 0
jmp 0x401a53
mov edx, dword [0x51161c]
mov byte [edx + 0xe8], 0
mov eax, dword [0x515ef0]
test eax, eax
je 0x403556
mov edx, dword [0x515edc]
lea ecx, [esp + 0x38]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401a53
mov eax, dword [0x51161c]
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 [0x51161c]
mov byte [ecx + 0xe8], 0
jmp 0x401a53
cmp ebx, 0xffffffff
jle 0x4035b2
mov dword [0x517990], 0
mov dword [0x517994], 0
mov dword [0x5179a0], eax
cmp byte [esp + 0x1e], 0
mov dword [0x5179a4], eax
je 0x4035c5
mov byte [0x51603a], 0
cmp byte [esp + 0x1d], 0
je 0x40238a
dec dword [0x516048]
test ebx, ebx
jle 0x40238a
cmp dword [0x516048], 0
jne 0x40238a
cmp dword [0x517954], 0
jne 0x40238a
cmp dword [0x516748], 0
jne 0x40238a
cmp byte [0x516034], 0
je 0x40238a
mov edx, dword [0x515edc]
push 9
push edx
jmp 0x402379