Function at 0x401930
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Check os version
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, 0x1344
call fcn.004d5830
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov byte [esp + 0x21], 0
lea ebx, [edi + 1]
jne 0x401969
cmp byte [0x51b02d], 0
mov dword [ebp + 0xc], ebx
jne 0x401969
mov byte [0x51b02d], bl
mov byte [esp + 0x21], bl
cmp dword [0x51c0b4], edi
je 0x40199d
cmp dword [0x51c0a4], edi
je 0x40198b
mov eax, dword [0x51c09c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x51c0a4], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x51c0b4], edi
mov dword [0x51c09c], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x4019bd
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x60], 1
mov dword [esp + 0x78], edi
jmp 0x4019db
cmp esi, 5
setle al
mov byte [esp + 0x60], al
test al, al
je 0x4019d1
mov dword [esp + 0x78], edi
jmp 0x4019db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x78], eax
cmp dword [0x51b938], edi
je 0x4019e8
call fcn.00403700
mov byte [esp + 0x17], 0
cmp dword [0x51cba0], edi
je 0x401a03
call fcn.00403520
test al, al
je 0x401a03
mov byte [esp + 0x17], 1
cmp esi, edi
jle 0x401c8e
cmp dword [ebp + 0xc], ebx
jne 0x401c8e
add dword [0x51b03c], ebx
cmp byte [0x51b027], 0
mov byte [esp + 0x22], 1
jne 0x401a45
mov ecx, dword [0x51aed0]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x51b027], dl
mov byte [esp + 0x2f], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x74], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov edi, eax
mov dword [esp + 0x58], edi
cmp dword [0x5162ac], ebx
jg 0x401aab
mov esi, dword [0x5162b8]
mov dword [0x5162ac], ebx
cmp esi, 0xffffffff
jne 0x401a87
mov esi, dword fs:[0x30]
mov dword [0x5162b8], esi
call fcn.00401300
cmp esi, ebx
je 0x401c98
movzx eax, byte [esi + 2]
mov dword [0x5162ac], eax
cmp eax, ebx
je 0x401aab
mov dword [0x51aeb8], 0xde
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x401cb0
cmp byte [esp + 0x23], 0
jne 0x401cb0
cmp byte [0x51b02d], 0
jne 0x401cbd
call fcn.00403cc0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x401a53
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, edi
cmp ecx, 3
jbe 0x401b0e
mov dword [0x51cbe8], eax
inc dword [esp + 0x74]
cmp dword [0x51c094], 0
je 0x401b47
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
lea edi, [esp + 0x38]
call fcn.00403770
add esp, 0x10
test al, al
jne 0x401a53
mov edx, dword [0x51b668]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
test edx, edx
je 0x4021c0
test ebx, ebx
je 0x4021c0
cmp ebx, dword [0x51aed0]
je 0x4021c0
cmp ecx, 0x414
je 0x4021c0
cmp ecx, 0x402
je 0x4021c0
lea eax, [ecx - 0x100]
cmp eax, 9
ja 0x402141
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x402147
call fcn.004b0e70
mov ebx, eax
test ebx, ebx
je 0x402147
mov eax, esi
call fcn.0045ab20
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x402147
mov eax, dword [edi + 0x74]
test eax, eax
je 0x401bec
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401a53
cmp dword [esp + 0x38], 0x100
mov esi, dword [esp + 0x3c]
jne 0x4020fa
cmp byte [edi + 0xb8], 0
je 0x402048
cmp esi, 0x22
je 0x401c28
cmp esi, 0x21
je 0x401c28
cmp esi, 9
je 0x401c28
cmp esi, 0x25
je 0x401c28
cmp esi, 0x27
jne 0x402048
mov eax, dword [esp + 0x1c]
mov ebx, edi
call fcn.00401820
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x402036
mov al, byte [ebx + 4]
cmp al, 0xf
je 0x402036
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
cmp al, 0x13
jne 0x401f64
mov dword [esp + 0x28], ebx
cmp esi, 0x25
je 0x401c72
cmp esi, 0x27
jne 0x401f64
cmp esi, 0x27
sete dl
push 0
movzx eax, dl
push 0
push eax
mov eax, ebx
mov ecx, edi
call fcn.00467d10
jmp 0x401a53
mov byte [esp + 0x22], 0
jmp 0x401a45
cmp eax, ebx
je 0x401ca5
movzx eax, byte [eax + 2]
jmp 0x401a98
mov dword [0x5162ac], ebx
jmp 0x401aab
cmp byte [0x51b02d], 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 [0x51c084]
jne 0x401e58
cmp dword [0x51b06c], 0
je 0x401d44
push 0x20
lea edx, [esp + 0x15c]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x4e698c
call fcn.004a4b10
add esp, 4
lea ecx, [esp + 0x158]
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 + 0x15c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x4e69ac
call fcn.004a4b10
add esp, 4
push eax
lea edx, [esp + 0x15c]
push edx
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x401dab
push 0x4e69d8
call fcn.004a4b10
add esp, 4
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.004c9bad
add esp, 8
test eax, eax
jne 0x401e58
call fcn.00403cc0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0x1ff
neg eax
push 0
sbb esi, esi
push 0
lea ecx, [esp + 0x44]
and esi, 0xfffffcee
push ecx
add esi, 0x311
call edi
test eax, eax
jne 0x401df1
push 1
push esi
push 0x20e
push eax
lea edx, [esp + 0x44]
push edx
call edi
jmp 0x401ed7
mov ebx, dword [esp + 0x44]
push 0
push esi
push 0x20e
push 0
lea eax, [esp + 0x44]
push eax
call edi
push 1
test eax, eax
jne 0x401e22
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x44]
push ecx
call edi
mov ebx, dword [ebp + 8]
jmp 0x401ed7
mov edx, dword [esp + 0x48]
sub edx, ebx
test edx, edx
jle 0x401e44
push 0x1ff
push 0
push 0
lea eax, [esp + 0x44]
push eax
call edi
mov ebx, dword [ebp + 8]
jmp 0x401ed7
push esi
push 0x20e
push 0
lea ecx, [esp + 0x44]
push ecx
call edi
mov ebx, dword [ebp + 8]
jmp 0x401ed7
cmp dword [0x5164f4], 0
je 0x401eb5
cmp dword [0x51b060], 0
jne 0x401eb5
mov eax, dword [0x5165ec]
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 [0x5165ec]
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 + 0x44]
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 [0x51cbe8], eax
test ebx, ebx
jne 0x401f12
cmp byte [esp + 0x2f], bl
jne 0x401f12
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x2f], 1
jmp 0x401a53
cmp dword [esp + 0x74], 0
jne 0x401f39
cmp byte [esp + 0x60], 0
je 0x401f39
test ebx, ebx
jle 0x401f2c
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x74], 1
jmp 0x401a53
call esi
cmp byte [esp + 0x60], 0
jne 0x4033a1
mov edx, dword [esp + 0x78]
sub edx, eax
add edx, ebx
cmp edx, 5
jle 0x4033a1
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401a53
cmp esi, 0x25
je 0x40203a
cmp esi, 0x27
je 0x40203a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x402036
mov esi, dword [esp + 0x3c]
cmp esi, 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 esi, dword [esp + 0x3c]
cmp dword [esp + 0x28], 0
jne 0x401fda
mov bl, byte [ebx + 6]
mov ecx, edi
call fcn.00467a50
mov dword [esp + 0x28], eax
test eax, eax
jne 0x401fda
xor bl, bl
call fcn.00467a50
mov dword [esp + 0x28], eax
test eax, eax
je 0x40203a
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x402036
mov eax, dword [esp + 0x3c]
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, edi
push eax
mov eax, esi
call fcn.00467d10
jmp 0x401a53
mov eax, 1
push eax
push eax
push eax
mov eax, esi
mov ecx, edi
call fcn.00467d10
jmp 0x401a53
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x38], 0x100
jne 0x4020fa
cmp esi, 0x1b
je 0x402084
cmp esi, 9
je 0x402084
cmp esi, 0x41
jne 0x4020fa
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
mov edx, 0x8000
test dx, ax
je 0x4020f6
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
jne 0x4020f6
mov eax, dword [esp + 0x1c]
mov ebx, edi
call fcn.00401820
mov dword [esp + 0x18], eax
test eax, eax
je 0x4020f6
mov edx, eax
cmp byte [edx + 4], 0xc
jne 0x4020f6
mov esi, dword [esp + 0x3c]
cmp esi, 0x1b
je 0x4020ea
cmp esi, 0x41
je 0x4020cd
test byte [eax + 5], 0x80
je 0x4020fa
mov eax, dword [eax]
push 0x4e6a04
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, edi
call fcn.004644b0
jmp 0x401a53
mov esi, dword [esp + 0x3c]
mov eax, dword [0x51c004]
test eax, eax
je 0x40214b
cmp dword [esp + 0x38], 0x100
jne 0x40214b
cmp esi, 0xd
jne 0x402127
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401a53
cmp esi, 0x1b
jne 0x40214b
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401a53
mov esi, dword [esp + 0x3c]
jmp 0x402159
mov esi, dword [esp + 0x3c]
mov edx, dword [0x51b668]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
xor edi, edi
test edx, edx
jle 0x4021c4
mov eax, dword [0x5165ec]
jmp 0x402170
mov ecx, dword [0x51b074]
mov byte [eax + 0xe8], 1
mov edx, dword [esp + 0x38]
mov dword [eax + 0xe4], edx
mov edx, dword [ecx + edi*4]
lea eax, [esp + 0x34]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40338f
mov edx, dword [0x51b668]
mov eax, dword [0x5165ec]
inc edi
mov byte [eax + 0xe8], 0
cmp edi, edx
jl 0x402170
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
cmp ecx, 0x312
ja 0x40231e
je case.0x402330.1026
cmp ecx, 0x100
ja 0x40223e
je 0x402215
cmp ecx, 0x12
je 0x402202
cmp ecx, 0x4b
jne case.0x402330.1027
mov dword [0x51b008], 0
mov byte [esp + 0x23], 1
jmp 0x401a53
push 0
push 6
push 0x51c0f8
call fcn.0041d650
jmp 0x401a53
cmp ebx, dword [0x51aed4]
jne case.0x402330.1027
cmp esi, 0x1b
jne case.0x402330.1027
mov edx, dword [0x51aed0]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x401a53
cmp ecx, 0x113
jne case.0x402330.1027
cmp dword [esp + 0x40], 0
jne case.0x402330.1027
cmp ebx, dword [0x51aed0]
jne case.0x402330.1027
cmp dword [0x51b938], 0
je 0x40226f
call fcn.00403700
cmp dword [0x51cba0], 0
je 0x402286
call fcn.00403520
test al, al
je 0x402286
mov byte [esp + 0x17], 1
cmp dword [ebp + 0xc], 0
je 0x401a53
cmp dword [ebp + 8], 1
jl 0x401a53
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x78]
mov esi, dword [ebp + 8]
push eax
push ecx
call fcn.004034e0
add esp, 8
test eax, eax
je 0x401a53
cmp byte [esp + 0x21], 0
je 0x4022c5
mov byte [0x51b02d], 0
cmp byte [esp + 0x22], 0
je 0x402313
dec dword [0x51b03c]
test esi, esi
jle 0x402313
cmp dword [0x51b03c], 0
jne 0x402313
cmp dword [0x51cba0], 0
jne 0x402313
cmp dword [0x51b938], 0
jne 0x402313
cmp byte [0x51b027], 0
je 0x402313
mov eax, dword [0x51aed0]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x402313
mov byte [0x51b027], 0
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x400]
cmp eax, 0x15
ja case.0x402330.1027
movzx eax, byte [eax + 0x40343c]
jmp dword [eax*4 + 0x403430]
test ebx, ebx
je case.0x402330.1026
cmp ebx, dword [0x51aed0]
jne case.0x402330.1027
xor edi, edi
lea eax, [ecx - 0x401]
mov dword [esp + 0x28], edi
cmp eax, 0x14
ja case.0x40235f.1027
movzx ecx, byte [eax + 0x403468]
jmp dword [ecx*4 + 0x403454]
xor eax, eax
cmp edx, edi
jle 0x402383
mov ecx, dword [0x51b074]
mov edi, dword [ecx + eax*4]
cmp dword [edi + 4], ebx
je 0x402411
inc eax
cmp eax, edx
jl 0x402372
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x403340
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x51c084]
jne 0x403340
push 0x20
lea eax, [esp + 0x15c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x4e698c
call fcn.004a4b10
add esp, 4
lea ecx, [esp + 0x158]
jmp 0x4023e0
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4032df
test dx, dx
je 0x40240a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4032df
add ecx, 4
add eax, 4
test dx, dx
jne 0x4023e0
xor eax, eax
jmp 0x4032e4
mov eax, edi
xor edi, edi
mov dword [esp + 0x10], eax
cmp eax, edi
je case.0x402330.1027
mov eax, dword [esp + 0x40]
movzx ecx, si
shr esi, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x54], edi
cmp ecx, 8
jne 0x402457
mov dword [esp + 0x7c], 0x2af8
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x10]
jae 0x40246f
lea edx, [esi + esi*4]
mov esi, dword [eax + 0x18]
lea edx, [esi + edx*4]
mov dword [esp + 0x18], edx
jmp 0x402473
mov dword [esp + 0x18], edi
add ecx, 0xfffffffb
mov dword [esp + 0x64], edi
mov byte [esp + 0x16], 0
cmp ecx, 4
ja case.default.0x402488
jmp dword [ecx*4 + 0x403480]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x401a53
mov eax, dword [esp + 0x10]
add eax, 0x3a
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4024ba
cmp byte [eax], 0
jne 0x401a53
mov edi, dword [esp + 0x50]
xor ebx, ebx
jmp 0x4027b8
mov eax, dword [eax + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x401a53
mov ecx, dword [esp + 0x10]
add ecx, 0x38
mov dword [esp + 0x64], ecx
jmp 0x4024a9
mov eax, dword [eax + 0x28]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x401a53
mov edx, dword [esp + 0x10]
add edx, 0x39
mov dword [esp + 0x64], edx
jmp 0x4024a9
mov eax, dword [eax + 0x34]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x401a53
mov edi, dword [esp + 0x50]
xor ebx, ebx
jmp 0x4027b8
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x40254a
cmp esi, edi
je 0x401a53
xor edi, edi
push edi
push edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x24], eax
cmp eax, edi
jne 0x4024ba
cmp esi, edi
je 0x401a53
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x68], 0
jmp 0x401a53
cmp dword [esp + 0x18], edi
je 0x401a53
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40259a
test byte [ecx + 5], 1
je 0x401a53
mov eax, dword [esp + 0x10]
call fcn.00464450
jmp 0x401a53
test byte [ecx + 5], 4
jne 0x401a53
mov edi, dword [esp + 0x50]
mov byte [esp + 0x16], 1
xor ebx, ebx
jmp 0x4027b8
cmp esi, edi
je 0x4025d7
call fcn.0045aaf0
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x4025db
cmp ebx, edi
je 0x4025db
cmp ebx, dword [0x51aed0]
jne case.0x402330.1027
jmp 0x4025db
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x40]
mov eax, 0x51c0f8
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 edi, dword [esp + 0x50]
mov edx, ecx
mov ebx, dword [edx + 0x18]
mov dword [esp + 0x1c], eax
jmp 0x4027b8
cmp esi, dword [0x51b940]
jae 0x401a53
mov eax, dword [0x51b93c]
mov esi, dword [eax + esi*4]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x68], esi
test eax, eax
je 0x4026a2
mov ecx, dword [esi + 4]
push ecx
mov esi, eax
call fcn.0040a130
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
je 0x401a53
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0x10]
mov al, byte [eax]
cmp al, 1
je 0x402662
cmp al, 3
je 0x402662
mov dword [esp + 0x5c], edi
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
push ecx
push esi
call fcn.0040d2d0
cmp dword [esi + 0xc], edi
jne 0x401a53
mov eax, dword [esp + 0x68]
cmp byte [eax + 0x2a], 0
je 0x4026a8
mov dx, word [esp + 0x40]
mov edi, dword [esp + 0x50]
mov word [0x51cbb8], dx
mov edx, dword [eax]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x1c], edx
jmp 0x4027b8
mov dword [esp + 0x5c], edi
jmp 0x402666
mov edi, dword [esp + 0x50]
xor ecx, ecx
mov word [0x51cbb8], cx
mov edx, dword [eax]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x1c], edx
jmp 0x4027b8
cmp byte [0x51cb8c], 0
jne 0x401a53
mov eax, dword [0x51cb80]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4026e6
mov eax, dword [0x51c72c]
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x50]
xor ebx, ebx
jmp 0x4027b8
mov edx, dword [0x516610]
mov eax, esi
and eax, 0x7fff
cmp ax, word [edx]
jae 0x401a53
mov ecx, dword [0x51b91c]
movzx eax, ax
mov edx, dword [ecx + eax*4]
shr esi, 0x10
mov dword [esp + 0x70], edx
test si, si
je 0x40274b
mov eax, edx
mov edi, dword [eax + 0x20]
add esi, 0xffff
mov dword [esp + 0x50], edi
test si, si
je 0x402747
mov ecx, dword [edi + 8]
add esi, 0xffff
mov dword [esp + 0x50], ecx
mov edi, ecx
test si, si
jne 0x402733
test edi, edi
jne 0x402767
mov edx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x60]
call fcn.0040ac50
mov dword [esp + 0x50], eax
test eax, eax
je 0x401a53
mov edi, eax
call fcn.004018a0
test al, al
jne 0x402787
cmp byte [edi + 0x1a], al
je 0x402779
mov byte [edi + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
jmp 0x401a53
mov eax, dword [edi + 4]
test eax, eax
je 0x4027a7
mov al, byte [eax]
cmp al, 2
je 0x4027a7
cmp al, 4
je 0x4027a7
cmp al, 5
jb 0x4027af
mov eax, dword [0x51b054]
mov dword [esp + 0x5c], eax
jmp 0x4027af
mov dword [esp + 0x5c], 0
mov ecx, dword [edi]
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x1c]
push esi
call fcn.004a1b30
add esp, 4
sub eax, 0
je 0x4027cd
dec eax
jne 0x4027d9
mov eax, dword [esi + 8]
test eax, eax
je 0x4027d9
movzx esi, word [eax]
jmp 0x4027db
xor esi, esi
mov eax, dword [0x51b040]
mov ecx, dword [0x516500]
cmp eax, ecx
jl 0x402867
add ecx, 2
cmp eax, ecx
jge 0x402841
mov edx, 0xde
cmp si, dx
je 0x402867
mov eax, 0xca
cmp si, ax
je 0x402867
mov ecx, 0xd8
cmp si, cx
je 0x402867
mov edx, 0xd9
cmp si, dx
je 0x402867
mov eax, 0xd4
cmp si, ax
je 0x402867
mov ecx, 0xd5
cmp si, cx
je 0x402867
mov edx, 0xd6
cmp si, dx
je 0x402867
mov eax, 0xd7
cmp si, ax
je 0x402867
cmp dword [esp + 0x28], 0
je 0x401a53
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x68], 0
jmp 0x401a53
mov eax, dword [0x5165ec]
cmp ebx, dword [eax + 0x2c]
jge 0x402897
cmp dword [esp + 0x28], 0
je 0x401a53
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x68], 0
jmp 0x401a53
mov eax, dword [esp + 0x38]
mov byte [esp + 0x17], 1
cmp eax, 0x402
je 0x40290b
cmp eax, 0x413
jbe 0x4028b9
cmp eax, 0x415
jbe 0x40295b
mov ecx, dword [0x51cb48]
mov edx, dword [0x51cbb0]
mov dword [0x51cb4c], ecx
mov dword [0x51cbb4], edx
cmp eax, 0x401
jne 0x4028f2
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov dword [0x51cb48], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51cbb0], eax
jmp 0x40295b
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 0x1c]
mov dword [0x51cb48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51cbb0], eax
jmp 0x40295b
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
push 0x104
push edx
push 0x51c734
call fcn.004cb3f1
mov ecx, dword [esp + 0x78]
xor eax, eax
mov word [0x51c93c], ax
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
add esp, 0xc
push 0x104
push eax
push 0x51c93e
call fcn.004cb3f1
mov edx, dword [esp + 0x78]
add esp, 0xc
xor ecx, ecx
mov word [0x51cb46], cx
mov dword [0x51c730], edx
mov ecx, dword [0x51b6d0]
push 0
push 1
call fcn.004016f0
push 0x7f
push eax
lea eax, [esp + 0x1a0]
push eax
call fcn.004cb3f1
add esp, 0xc
xor ecx, ecx
push esi
push ecx
push ebx
mov al, 1
mov word [esp + 0x2a2], cx
call fcn.00403af0
mov ebx, dword [0x5165ec]
add esp, 0xc
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51cbec], eax
mov dword [0x51cbe8], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffbff
cmp eax, 0x14
ja case.0x4029c7.1027
movzx edx, byte [eax + 0x4034a8]
jmp dword [edx*4 + 0x403494]
mov esi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x88], ax
cmp byte [esp + 0x16], al
je 0x4029e6
mov ecx, dword [esi]
jmp 0x4029ed
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov edi, dword [esp + 0x54]
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0xc8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
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.0x402a1f
jmp dword [eax*4 + 0x4034c0]
xor eax, eax
cmp dword [esp + 0x24], edx
mov dword [esp + 0x24], edx
sete al
lea eax, [eax + eax + 1]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x3c], ecx
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x40], eax
cmp esi, edx
je 0x402af5
cmp dword [ebx + 0x34], 1
jne 0x402a63
mov esi, dword [esp + 0x18]
lea eax, [ebx + 0x3c]
push eax
call fcn.00468600
movzx eax, byte [esi + 4]
sub eax, 9
je 0x402ade
dec eax
je 0x402ad0
dec eax
jne 0x402af5
cmp dword [ebx + 0x34], 1
jne 0x402a8f
mov ecx, dword [esi]
push eax
push 9
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402af1
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
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 0x402af1
mov edx, dword [esi]
push 1
push 0xffffffffffffffff
push 0x100c
push edx
jmp 0x402aea
mov eax, dword [esi]
push 0
push 0
push 0x19f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
lea esi, [ebx + 0x3c]
call fcn.004ad3f0
cmp dword [esp + 0x18], 0
mov ecx, 1
je 0x402b31
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0xc8]
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
add edi, ecx
mov dword [eax + 8], ecx
mov dword [eax], edx
mov dword [eax + 4], 0
jmp 0x402b4a
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0xc8]
inc edi
mov dword [eax + 8], 0
mov dword [eax], 0x4f5ac4
mov edx, edi
add edx, edx
mov dword [esp + edx*8 + 0xd0], ecx
mov dword [esp + edx*8 + 0xcc], 0
lea eax, [esp + edx*8 + 0xc8]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
add edi, ecx
mov eax, edi
add eax, eax
lea esi, [esp + eax*8 + 0xc8]
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 + 0xc8]
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 + 0xc8]
mov eax, dword [ebx + 0x40]
cdq
add edi, ecx
mov dword [esi + 8], ecx
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x402ebc
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x34], ecx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
lea esi, [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov ecx, dword [ecx + 4]
call fcn.004ad3f0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [esp + 0x28]
mov eax, edi
add eax, eax
lea ecx, [esp + eax*8 + 0xc8]
push edx
mov dword [esp + 0x5c], ecx
call fcn.0045cf30
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [ecx + 8], 6
mov dword [ecx], eax
je 0x402c60
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea eax, [edi + 1]
add eax, eax
lea eax, [esp + eax*8 + 0xc8]
mov dword [eax + 8], 1
mov dword [eax], ecx
mov dword [eax + 4], 0
jmp 0x402c79
lea edx, [edi + 1]
add edx, edx
lea eax, [esp + edx*8 + 0xc8]
mov dword [eax + 8], 0
mov dword [eax], 0x4f5ac4
mov edx, dword [esp + 0x10]
mov esi, dword [esi]
add edi, 2
mov eax, edi
add eax, eax
cmp byte [edx + 0xc0], 0
lea ecx, [esp + eax*8 + 0xc8]
mov dword [esp + 0x58], ecx
je 0x402cab
mov eax, dword [0x51c088]
push eax
push 0x60
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x402cad
mov eax, esi
mov ecx, dword [esp + 0x58]
cdq
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov eax, dword [ebx + 0x40]
lea ecx, [edi + 1]
add ecx, ecx
add edi, 2
cmp byte [edx + 0xc0], 0
lea esi, [esp + ecx*8 + 0xc8]
mov dword [esp + 0x54], edi
je 0x402cf1
mov ecx, dword [0x51c088]
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 0x402ec0
mov dword [ebx + 0x34], 1
cmp ecx, 8
jne 0x402ec8
mov ecx, dword [esp + 0x80]
mov edx, edi
add edx, edx
lea eax, [esp + edx*8 + 0xc8]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x3c], ecx
mov dword [eax], edx
mov edx, dword [esp + 0x10]
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 + 0xc8]
movzx eax, cx
je 0x402d6f
mov ecx, dword [0x51c088]
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 + 0x10]
mov dword [esi + 8], 1
add edx, edx
add edi, 3
shr eax, 0x10
cmp byte [ecx + 0xc0], 0
lea esi, [esp + edx*8 + 0xc8]
mov dword [esp + 0x54], edi
je 0x402cf1
mov edx, dword [0x51c088]
push edx
jmp 0x402ce8
mov al, byte [esi + 4]
cmp al, 0xa
je 0x402de2
cmp al, 0x19
jne 0x402e79
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0x40], ecx
mov ecx, dword [edx + 4]
lea esi, [ebx + 0x3c]
call fcn.004ad3f0
jmp 0x402e79
cmp cl, 0x49
jne 0x402e79
lea eax, [esp + 0x88]
test ecx, 0x100
je 0x402e09
mov eax, 0x53
mov word [esp + 0x88], ax
jmp 0x402e1e
test ecx, 0x200
je 0x402e25
mov edx, 0x73
mov word [esp + 0x88], dx
lea eax, [esp + 0x8a]
test ecx, 0x400
je 0x402e34
mov edx, 0x46
jmp 0x402e41
test ecx, 0x800
je 0x402e47
mov edx, 0x66
mov word [eax], dx
add eax, 2
test ecx, 0x1000
je 0x402e59
mov ecx, 0x43
mov word [eax], cx
jmp 0x402e69
test ecx, 0x2000
je 0x402e6c
mov edx, 0x63
mov word [eax], dx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x30], 0x49
mov edx, ebx
mov ebx, dword [esp + 0x30]
mov eax, edi
add eax, eax
mov dword [edx + 0x34], ebx
lea esi, [esp + eax*8 + 0xc8]
call fcn.0045ce90
mov ebx, dword [esp + 0x58]
lea edx, [edi + 1]
mov dword [esi], eax
add edx, edx
lea eax, [esp + edx*8 + 0xc8]
mov edx, dword [esp + 0x24]
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 + 0x18]
mov ecx, dword [esp + 0x30]
cmp byte [esp + 0x16], 0
je 0x402f85
cmp byte [esi + 4], 0x17
jne 0x402f85
push 0x10b8
lea eax, [esp + 0x29c]
push 0
push eax
call fcn.004d2f90
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x298]
push edx
push 0
push 0x703
dec ecx
push eax
mov dword [esp + 0x2a8], 0xd
mov dword [esp + 0x2ac], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402fe9
cmp word [esp + 0x308], 0
lea eax, [esp + 0x308]
jne 0x402f44
lea eax, [esp + 0x2a8]
mov ecx, dword [0x51b6d0]
push 1
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.004aefb0
mov ecx, dword [0x51b6d0]
mov edx, edi
push 0
add edx, edx
inc edi
push 1
lea esi, [esp + edx*8 + 0xd0]
mov dword [esp + 0x5c], edi
call fcn.004016f0
mov dword [esi + 8], 0
mov dword [esi], eax
mov esi, dword [esp + 0x18]
jmp 0x402fe9
cmp word [esp + 0x88], 0
je 0x402fb0
mov eax, edi
add eax, eax
lea eax, [esp + eax*8 + 0xc8]
inc edi
lea edx, [esp + 0x88]
mov dword [esp + 0x54], edi
mov dword [eax + 8], 0
mov dword [eax], edx
cmp ecx, 8
je 0x402fd6
cmp ecx, 5
je 0x402fd6
mov ecx, dword [0x51b6d0]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
push ecx
call fcn.004aefb0
jmp 0x402fe9
mov edx, dword [esp + 0x24]
mov eax, dword [0x51b6d0]
push 0x18
push 0
push edx
call fcn.00401590
mov eax, dword [esp + 0x10]
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 + 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x50], edx
test eax, eax
je 0x40301b
mov byte [eax], 1
jmp 0x403026
cmp byte [esp + 0x16], 0
je 0x403026
or byte [esi + 5], 4
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
push ecx
push edi
lea edx, [esp + 0xd0]
push edx
push 0x4e6a10
xor eax, eax
mov ecx, ebx
call fcn.0049ec30
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [esi + 4], 0
je 0x4030ef
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40309c
cmp dword [esp + 0x30], 6
mov byte [eax], 0
jne 0x4030ab
cmp dword [esp + 0x84], 0
jne 0x4030ef
push ebx
call fcn.004a1b30
add esp, 4
test eax, eax
jne 0x403087
test ebx, ebx
jne 0x4030ef
mov eax, esi
call fcn.00464450
mov esi, dword [esp + 0x10]
call fcn.0045ccc0
jmp 0x403299
cmp byte [esp + 0x16], 0
je 0x4030ab
mov eax, dword [esp + 0x18]
and byte [eax + 5], 0xfb
cmp dword [esp + 0x30], 5
jne 0x4030ef
mov eax, dword [esp + 0xd8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
mov dword [esi + 0x68], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 4]
or eax, 0x10
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [esp + 0x10]
call fcn.0045ccc0
jmp 0x403299
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40311f
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, 0x51c0f8
mov dword [esp + 0x130], esi
mov dword [esp + 0x128], 0x51c734
call fcn.00444ed0
push esi
xor ecx, ecx
inc eax
push 3
lea edx, [esp + 0x130]
mov dword [esp + 0x144], ecx
mov ecx, dword [esp + 0x24]
push edx
mov dword [esp + 0x144], eax
push 0x4e6a10
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x150], 1
mov dword [esp + 0x160], esi
mov dword [esp + 0x158], 0x51c93e
call fcn.0049ec30
mov esi, dword [esp + 0x20]
add esp, 0x10
test esi, esi
je 0x403299
call fcn.0045ccc0
jmp 0x403299
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.0040d210
jmp 0x403299
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x4031f0
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4031e9
push 0xf
call esi
test eax, eax
jne 0x4031e9
mov eax, 2
jmp 0x4031f2
mov eax, 1
jmp 0x4031f2
xor eax, eax
mov edx, dword [0x51b6d0]
push edx
mov dword [ebx + 0x38], eax
call fcn.004016d0
mov eax, dword [ebx + 0x38]
mov ecx, dword [0x51cb80]
mov dword [esp + 0xc0], 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0
mov byte [0x51cb8c], 1
test ecx, ecx
je 0x40323d
call fcn.00401760
mov ecx, dword [0x51cb80]
cmp dword [esp + 0x3c], 0
jne 0x403260
xor edx, edx
test ecx, ecx
sete dl
lea eax, [esp + 0xb8]
push edx
push 1
push eax
push 0x51cb60
call fcn.004a1c30
mov byte [0x51cb8c], 0
jmp 0x403299
mov ecx, dword [esp + 0x70]
mov al, byte [ecx + 0x10]
cmp al, 0x9c
jb 0x40327f
cmp al, 0x9f
ja 0x40327f
mov edx, dword [esp + 0x40]
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xc4], eax
mov dl, byte [edi + 0x18]
push edi
push ecx
mov byte [ebx + 0xf6], dl
call fcn.0040b020
lea eax, [esp + 0x198]
push eax
call fcn.00403bf0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x401a53
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.004034e0
add esp, 8
test eax, eax
je 0x401a53
mov byte [esp + 0x23], 1
mov byte [esp + 0x60], 1
jmp 0x401a53
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403340
mov eax, dword [0x5165ec]
lea edx, [esp + 0x34]
mov byte [eax + 0xe8], 1
mov ecx, dword [esp + 0x38]
push edx
push esi
mov dword [eax + 0xe4], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x403333
cmp dword [0x51b06c], 0
je 0x403322
push 0x51b6d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x5165ec]
mov byte [eax + 0xe8], 0
jmp 0x401a53
mov ecx, dword [0x5165ec]
mov byte [ecx + 0xe8], 0
mov eax, dword [0x51aee4]
test eax, eax
je 0x403363
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [0x51aed0]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401a53
mov eax, dword [0x5165ec]
mov byte [eax + 0xe8], 1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x34]
push edx
mov dword [eax + 0xe4], ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [0x5165ec]
mov byte [ecx + 0xe8], 0
jmp 0x401a53
cmp ebx, 0xffffffff
jle 0x4033bf
mov dword [0x51cbd8], 0
mov dword [0x51cbdc], 0
mov dword [0x51cbe8], eax
cmp byte [esp + 0x21], 0
mov dword [0x51cbec], eax
je 0x4033d2
mov byte [0x51b02d], 0
cmp byte [esp + 0x22], 0
je 0x402313
dec dword [0x51b03c]
test ebx, ebx
jle 0x402313
cmp dword [0x51b03c], 0
jne 0x402313
cmp dword [0x51cba0], 0
jne 0x402313
cmp dword [0x51b938], 0
jne 0x402313
cmp byte [0x51b027], 0
je 0x402313
mov edx, dword [0x51aed0]
push 9
push edx
jmp 0x402302