Function at 0x482470
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 [0x5bd344]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x424]
push 0x208
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.00583650
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.00583650
add esp, 0xc
mov dword [ebp - 0x698], 0
mov dword [ebp - 0x69c], 0
test esi, esi
jne 0x4824e8
push esi
push esi
lea edx, [esi + 1]
xor ecx, ecx
call fcn.00482c20
add esp, 8
test eax, eax
je 0x482be6
test ebx, ebx
je 0x482680
cmp dword [0x5e9fbc], 0
je 0x482680
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x41bcc8
push 0x5f05e0
call esi
push 0x5f05e0
push 0xfb05
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x5e9d98], 0
jne 0x482554
push 0x41bcc8
push 0x5e9a58
call esi
push 0x5f0300
xor edx, edx
xor ecx, ecx
call fcn.00472590
mov ecx, dword [0x5e9fbc]
add esp, 4
mov edx, 0x41695d
push 0
call fcn.00466940
mov ecx, dword [0x5e9fbc]
add esp, 4
xor edx, edx
call fcn.0048a7d0
call fcn.00482240
mov eax, dword [0x5f0364]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov dword [0x5ed5f0], 0
mov eax, dword [eax*4 + 0x417510]
push eax
push 0x7ef
push dword [0x5e9fbc]
mov dword [0x5e9fa8], 0
mov dword [0x5e95d8], eax
call esi
mov ecx, dword [0x5f0384]
mov eax, 0xfde9
test ecx, ecx
mov dword [0x5e95cc], ecx
push 0
cmove eax, dword [0x5e8f74]
push eax
push 0x7f5
push dword [0x5e9fbc]
mov dword [0x5e95b0], ecx
call esi
mov ecx, dword [0x5e9fbc]
mov edx, 0x41695d
push 0
call fcn.00466940
add esp, 4
cmp dword [0x5ed5f0], 0
jne 0x482626
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
jne 0x482626
xor eax, eax
jmp 0x48262b
mov eax, 1
mov edx, dword [0x5be124]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x5f0848]
push 0x5f05e0
sub esp, 8
call fcn.00473260
mov ecx, dword [0x5f03a4]
xor edx, edx
add esp, 0x20
cmp dword [0x5f0a68], edx
cmovne ecx, edx
mov dword [0x5f03a4], ecx
xor ecx, ecx
call fcn.004842b0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test edi, edi
je 0x4826a1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4826a1
push edi
lea eax, [ebp - 0x424]
push eax
call esi
jmp 0x4826ba
push 0
push ecx
lea edx, [ebp - 0x424]
call fcn.004830f0
add esp, 8
test eax, eax
je 0x482be6
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 0x4826f0
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 0x482769
push 0x104
push 0x5e97f8
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 0x482779
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 0x482779
lea eax, [ebp - 0x62c]
jmp 0x48276f
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 0x4827a1
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 0x4827d9
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x4827d9
push 1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea ecx, [ebp - 0x21c]
call fcn.004745b0
test eax, eax
je 0x4827fd
lea edx, [ebp - 0x21c]
push 0x104
mov ecx, edx
call fcn.00474620
add esp, 4
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x48293a
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
jne 0x48293a
cmp dword [0x5e9b58], eax
jne 0x482845
lea eax, [ebp - 0x21c]
push eax
push 0xc366
push 2
call fcn.00458d80
add esp, 0xc
cmp eax, 6
jne 0x482be6
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 [0x5f0854], eax
xor ebx, ebx
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
setne bl
je 0x482964
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5f0300
xor edx, edx
xor ecx, ecx
call fcn.00472590
mov ecx, dword [0x5e9fbc]
add esp, 4
mov edx, 0x41695d
push 0
call fcn.00466940
mov ecx, dword [0x5e9fbc]
add esp, 4
xor edx, edx
call fcn.0048a7d0
mov eax, dword [0x5f0364]
push 0
mov eax, dword [eax*4 + 0x417510]
push eax
push 0x7ef
push dword [0x5e9fbc]
mov dword [0x5e95d8], eax
call edi
mov ecx, dword [0x5f0370]
cmp ecx, 0xffffffff
jne 0x4828ef
mov ecx, dword [0x5f0384]
test ecx, ecx
mov dword [0x5e95b0], ecx
push 0
mov eax, 0xfde9
mov dword [0x5e95cc], ecx
cmove eax, dword [0x5e8f74]
push eax
push 0x7f5
push dword [0x5e9fbc]
call edi
mov ecx, dword [0x5e9fbc]
mov edx, 0x41695d
push 0
mov dword [0x5e9fa8], 0
call fcn.00466940
add esp, 4
jmp 0x482964
push 0
push 0
lea eax, [ebp - 0x69c]
mov ecx, 1
push eax
lea eax, [ebp - 0x698]
push eax
sub esp, 0xc
lea edx, [ebp - 0x21c]
call fcn.00482300
add esp, 0x1c
mov ebx, eax
test ebx, ebx
je 0x482bb4
lea eax, [ebp - 0x21c]
push eax
push 0x5f05e0
call esi
push 0x5f05e0
push 0xfb05
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x5e9d98], 0
jne 0x4829bf
push 0x41bcc8
push 0x5e9a58
call esi
cmp dword [0x5e9b70], 0
jne 0x4829d8
mov ecx, dword [0x5e9fbc]
mov edx, 0x5f05e0
call fcn.0048bf90
call fcn.00482240
mov eax, dword [0x5e95cc]
push 0
push dword [0x5e95d8]
mov dword [0x5e95b0], eax
push 0x7ef
push dword [0x5e9fbc]
mov dword [0x5ed5f0], 0
call edi
cmp dword [0x5e95b4], 2
jne 0x482a1e
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
cmp dword [0x5ed5f0], 0
jne 0x482a38
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
jne 0x482a38
xor eax, eax
jmp 0x482a3d
mov eax, 1
mov edx, dword [0x5be124]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x5f0848]
lea eax, [ebp - 0x21c]
push eax
sub esp, 8
call fcn.00473260
add esp, 0x20
cmp dword [ebp + 8], 0
jne 0x482a7b
mov eax, dword [0x5f03a4]
xor edx, edx
cmp dword [0x5f0a68], edx
cmovne eax, edx
mov dword [0x5f03a4], eax
mov ecx, 0x5f05e0
call fcn.004842b0
push 0
push 0
push 0x7d6
push dword [0x5e9fbc]
call edi
cmp eax, 4
jl 0x482b89
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 5
push 0x886
push dword [0x5e9fbc]
mov byte [ebp - 0xc], 0
call edi
push 0x41f784
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x482b89
mov esi, dword [0x5e9fbc]
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 [0x5e9fbc]
call edi
push 0
push 0
push 0x919
push dword [0x5e9fbc]
call edi
push 0
push 0x19d9e
push 0x111
push dword [0x5f0848]
call edi
mov esi, dword [0x5e9fbc]
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 [0x5e9fbc]
call edi
push 0
push 0
push 0x81f
push dword [0x5e9fbc]
call edi
mov esi, dword [0x5e9fbc]
push 0
push 0
push 0x86a
push esi
call edi
push 0
push 0
push 0x90e
push esi
call edi
call fcn.0046e7d0
cmp dword [ebp - 0x698], 0
je 0x482bd3
push 0xc35f
push 1
call fcn.00458d80
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x69c], 0
jne 0x482bd3
lea eax, [ebp - 0x21c]
push eax
push 0xc350
push 1
call fcn.00458d80
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
mov esp, ebp
pop ebp
ret