Function at 0x466600
Capabilities:
Check for time delay via gettickcount
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
mov ebx, edx
mov esi, ecx
call fcn.00518020
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00518020
add esp, 0xc
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 0
test esi, esi
jne 0x466697
push esi
push esi
lea edx, [esi + 1]
xor ecx, ecx
call fcn.00466da0
add esp, 8
test eax, eax
jne 0x466697
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test ebx, ebx
je 0x46681a
push 0x407d38
push 0x56e260
call esi
push 0x56e260
push 0xfb05
push dword [0x56e928]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x56e928]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x567280], 0
jne 0x4666f6
push 0x407d38
push 0x565f48
call esi
push 0x56e1c0
xor edx, edx
xor ecx, ecx
call fcn.00453cd0
mov ecx, dword [0x56e17c]
add esp, 4
mov edx, 0x408071
push 0
call fcn.004470f0
mov ecx, dword [0x56e17c]
add esp, 4
xor edx, edx
call fcn.0046a390
call fcn.004663d0
mov eax, dword [0x56e178]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax*4 + 0x53d348]
push 0
push eax
push 0x7ef
push dword [0x56e17c]
mov dword [0x56d210], 0
mov dword [0x567b48], 0
mov dword [0x56a9ac], eax
call esi
mov eax, dword [0x56e1b8]
mov dword [0x56d450], eax
mov dword [0x56d448], eax
test eax, eax
mov eax, dword [0x56e1b4]
je 0x466786
mov eax, 0xfde9
push 0
push eax
push 0x7f5
push dword [0x56e17c]
call esi
mov ecx, dword [0x56e17c]
push 0
mov edx, 0x408071
call fcn.004470f0
add esp, 4
cmp dword [0x56d210], 0
jne 0x4667c5
mov eax, dword [0x56d450]
cmp eax, dword [0x56d448]
jne 0x4667c5
xor eax, eax
jmp 0x4667ca
mov eax, 1
mov edx, dword [0x53d35c]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x56e928]
push 0x56e260
sub esp, 8
call fcn.00454d10
mov ecx, dword [0x56e914]
add esp, 0x20
neg ecx
sbb ecx, ecx
not ecx
and dword [0x56e240], ecx
xor ecx, ecx
call fcn.00468470
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x466835
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x466835
push edi
lea eax, [ebp - 0x424]
push eax
call esi
jmp 0x46684e
push 0
push ecx
lea edx, [ebp - 0x424]
call fcn.00467280
add esp, 8
test eax, eax
je 0x466684
push 0x138
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x466884
push 0x104
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4668fd
push 0x104
push 0x567298
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
jne 0x46690d
push eax
lea eax, [ebp - 0x62c]
push eax
push 0x104
push 0
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x46690d
lea eax, [ebp - 0x62c]
jmp 0x466903
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x466935
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
push 0x104
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x46696d
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x46696d
push 1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea ecx, [ebp - 0x21c]
call fcn.004560c0
test eax, eax
je 0x466991
lea edx, [ebp - 0x21c]
push 0x104
mov ecx, edx
call fcn.00456130
add esp, 4
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x466acc
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
jne 0x466acc
cmp dword [0x567934], eax
jne 0x4669d9
lea eax, [ebp - 0x21c]
push eax
push 0xc366
push 2
call fcn.004422f0
add esp, 0xc
cmp eax, 6
jne 0x466684
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x56e220], eax
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x466d6f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x56e1c0
xor edx, edx
xor ecx, ecx
call fcn.00453cd0
mov ecx, dword [0x56e17c]
add esp, 4
mov edx, 0x408071
push 0
call fcn.004470f0
mov ecx, dword [0x56e17c]
add esp, 4
xor edx, edx
call fcn.0046a390
mov eax, dword [0x56e178]
push 0
mov eax, dword [eax*4 + 0x53d348]
push eax
push 0x7ef
push dword [0x56e17c]
mov dword [0x56a9ac], eax
call edi
mov eax, dword [0x53d358]
cmp eax, 0xffffffff
jne 0x466a83
mov eax, dword [0x56e1b8]
mov dword [0x56d448], eax
mov dword [0x56d450], eax
test eax, eax
mov eax, dword [0x56e1b4]
je 0x466a9b
mov eax, 0xfde9
push 0
push eax
push 0x7f5
push dword [0x56e17c]
call edi
mov ecx, dword [0x56e17c]
push 0
mov edx, 0x408071
mov dword [0x567b48], 0
call fcn.004470f0
add esp, 4
jmp 0x466af6
push 0
push 0
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x69c]
push eax
sub esp, 0xc
lea edx, [ebp - 0x21c]
mov ecx, 1
call fcn.00466490
add esp, 0x1c
mov ebx, eax
test ebx, ebx
je 0x466d66
lea eax, [ebp - 0x21c]
push eax
push 0x56e260
call esi
push 0x56e260
push 0xfb05
push dword [0x56e928]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x56e928]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x567280], 0
jne 0x466b51
push 0x407d38
push 0x565f48
call esi
cmp dword [0x567290], 0
jne 0x466b6a
mov ecx, dword [0x56e17c]
mov edx, 0x56e260
call fcn.0046be30
call fcn.004663d0
mov eax, dword [0x56d450]
push 0
push dword [0x56a9ac]
mov dword [0x56d448], eax
push 0x7ef
push dword [0x56e17c]
mov dword [0x56d210], 0
call edi
push dword [0x5674b4]
mov ecx, dword [0x56e918]
push dword [0x567288]
lea edx, [ebp - 0x21c]
call fcn.00456c90
add esp, 8
cmp dword [0x565f3c], 2
jne 0x466bd0
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
cmp dword [0x56d210], 0
jne 0x466bea
mov eax, dword [0x56d450]
cmp eax, dword [0x56d448]
jne 0x466bea
xor eax, eax
jmp 0x466bef
mov eax, 1
mov edx, dword [0x53d35c]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x56e928]
lea eax, [ebp - 0x21c]
push eax
sub esp, 8
call fcn.00454d10
add esp, 0x20
cmp dword [ebp + 8], 0
jne 0x466c29
mov eax, dword [0x56e914]
neg eax
sbb eax, eax
not eax
and dword [0x56e240], eax
mov ecx, 0x56e260
call fcn.00468470
push 0
push 0
push 0x7d6
push dword [0x56e17c]
call edi
cmp eax, 4
jl 0x466d3b
mov al, byte [0x408071]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x10]
push eax
push 5
push 0x886
push dword [0x56e17c]
mov dword [ebp - 0xf], 0
call edi
push 0x40a06c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x466d3b
mov esi, dword [0x56e17c]
push eax
push eax
push 0x86a
push esi
call edi
push 0
push 0
push 0x90e
push esi
call edi
push 0
push 0
push 0x81e
push dword [0x56e17c]
call edi
push 0
push 0
push 0x919
push dword [0x56e17c]
call edi
push 0
push 0x19d9e
push 0x111
push dword [0x56e928]
call edi
mov esi, dword [0x56e17c]
push 0
push 0
push 0x86a
push esi
call edi
push 0
push 0
push 0x90e
push esi
call edi
push 0
push 0
push 0x919
push dword [0x56e17c]
call edi
push 0
push 0
push 0x81f
push dword [0x56e17c]
call edi
mov esi, dword [0x56e17c]
push 0
push 0
push 0x86a
push esi
call edi
push 0
push 0
push 0x90e
push esi
call edi
call fcn.0044f270
cmp dword [ebp - 0x69c], 0
je 0x466d85
push 0xc35f
push 1
call fcn.004422f0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x698], 0
jne 0x466d85
lea eax, [ebp - 0x21c]
push eax
push 0xc350
push 1
call fcn.004422f0
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret