Function at 0x41d0b5
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x424]
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x630], edx
push edi
push eax
mov esi, ecx
call fcn.00489f20
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push edi
push eax
call fcn.00489f20
add esp, 0xc
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x638], edi
test esi, esi
jne 0x41d128
xor edx, edx
xor ecx, ecx
push edi
push edi
inc edx
call fcn.0041d6d4
pop ecx
pop ecx
test eax, eax
je 0x41d6c3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x630], edi
je 0x41d25d
push 0x4bc498
mov ebx, 0x52a900
push ebx
call esi
push ebx
push 0xfb05
push dword [0x52ab74]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x52ab74]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x523d9c], edi
jne 0x41d186
push 0x4bc498
push 0x523a68
call esi
push 0x52a600
xor edx, edx
xor ecx, ecx
call fcn.0040edc1
pop ecx
mov ecx, dword [0x52a68c]
xor edx, edx
call fcn.004205c2
mov eax, dword [0x52a66c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov dword [0x5278b4], edi
mov eax, dword [eax*4 + 0x4bcd90]
push eax
push 0x7ef
push dword [0x52a68c]
mov dword [0x524fc8], edi
mov dword [0x5278d4], eax
call esi
mov ecx, dword [0x52a688]
mov eax, 0xfde9
test ecx, ecx
mov dword [0x5278e4], ecx
push edi
cmove eax, dword [0x52a664]
push eax
push 0x7f5
push dword [0x52a68c]
mov dword [0x52a138], ecx
call esi
cmp dword [0x5278b4], edi
jne 0x41d218
mov eax, dword [0x5278e4]
cmp eax, dword [0x52a138]
je 0x41d21b
xor edi, edi
inc edi
mov edx, dword [0x4fa128]
sub esp, 0xc
push edi
push ecx
push ebx
push ecx
push ecx
mov ecx, dword [0x52ab74]
call fcn.0040fa46
mov ecx, dword [0x52a6b4]
xor edx, edx
add esp, 0x20
cmp dword [0x52ada8], edx
cmovne ecx, edx
mov dword [0x52a6b4], ecx
xor ecx, ecx
call fcn.0041ebb8
xor eax, eax
inc eax
jmp 0x41d6c5
test ebx, ebx
je 0x41d278
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41d278
push ebx
lea eax, [ebp - 0x424]
push eax
call esi
jmp 0x41d28f
push edi
push ecx
lea edx, [ebp - 0x424]
call fcn.0041db45
pop ecx
pop ecx
test eax, eax
je 0x41d6c3
mov edx, 0x104
lea ecx, [ebp - 0x424]
call fcn.004110cd
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 0x41d316
push 0x104
push 0x523808
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 0x41d326
push edi
lea eax, [ebp - 0x62c]
push eax
push 0x104
push edi
lea eax, [ebp - 0x424]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x41d326
lea eax, [ebp - 0x62c]
jmp 0x41d31c
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
lea ecx, [ebp - 0x21c]
call fcn.0041111a
lea ecx, [ebp - 0x21c]
call fcn.0041115d
lea ecx, [ebp - 0x21c]
call fcn.00410b1e
test eax, eax
je 0x41d35e
lea edx, [ebp - 0x21c]
push 0x104
mov ecx, edx
call fcn.00410b79
pop ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 8], edi
jne 0x41d472
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
jne 0x41d472
cmp dword [0x523a64], edi
jne 0x41d3a5
lea eax, [ebp - 0x21c]
push eax
push 0xc366
push 2
call fcn.00401b50
add esp, 0xc
cmp eax, 6
jne 0x41d6c3
push edi
push 0x80
push 1
push edi
push 3
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x630], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [0x52ab8c], eax
mov eax, dword [ebp - 0x630]
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 0x630], ebx
je 0x41d49e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x52a600
xor edx, edx
xor ecx, ecx
call fcn.0040edc1
pop ecx
mov ecx, dword [0x52a68c]
xor edx, edx
call fcn.004205c2
mov eax, dword [0x52a66c]
push edi
mov eax, dword [eax*4 + 0x4bcd90]
push eax
push 0x7ef
push dword [0x52a68c]
mov dword [0x5278d4], eax
call esi
mov ecx, dword [0x4fa124]
cmp ecx, 0xffffffff
jne 0x41d441
mov ecx, dword [0x52a688]
test ecx, ecx
mov dword [0x52a138], ecx
push edi
mov eax, 0xfde9
mov dword [0x5278e4], ecx
cmove eax, dword [0x52a664]
push eax
push 0x7f5
push dword [0x52a68c]
call esi
mov dword [0x524fc8], edi
jmp 0x41d49e
push edi
push edi
lea eax, [ebp - 0x638]
xor ecx, ecx
push eax
lea eax, [ebp - 0x634]
inc ecx
push eax
sub esp, 0xc
lea edx, [ebp - 0x21c]
call fcn.0041cf86
mov ebx, eax
add esp, 0x1c
mov dword [ebp - 0x630], ebx
test ebx, ebx
je 0x41d6a3
lea eax, [ebp - 0x21c]
mov ebx, 0x52a900
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0xfb05
push dword [0x52ab74]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x52ab74]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x523d9c], edi
jne 0x41d4fc
push 0x4bc498
push 0x523a68
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [0x523b78], edi
jne 0x41d511
mov ecx, dword [0x52a68c]
mov edx, ebx
call fcn.00421822
mov eax, dword [0x5278e4]
push edi
push dword [0x5278d4]
mov dword [0x52a138], eax
push 0x7ef
push dword [0x52a68c]
mov dword [0x5278b4], edi
call esi
push dword [0x522fbc]
mov ecx, dword [0x52a698]
lea edx, [ebp - 0x21c]
push dword [0x5233c8]
call fcn.004114ff
cmp dword [0x5235e0], 2
pop ecx
pop ecx
jne 0x41d56c
lea eax, [ebp - 0x21c]
push eax
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
cmp dword [0x5278b4], edi
jne 0x41d585
mov eax, dword [0x5278e4]
cmp eax, dword [0x52a138]
jne 0x41d585
mov eax, edi
jmp 0x41d588
xor eax, eax
inc eax
mov edx, dword [0x4fa128]
sub esp, 0xc
push eax
push ecx
lea eax, [ebp - 0x21c]
push eax
push ecx
push ecx
mov ecx, dword [0x52ab74]
call fcn.0040fa46
add esp, 0x20
cmp dword [ebp + 8], edi
jne 0x41d5c4
mov eax, dword [0x52a6b4]
xor ecx, ecx
cmp dword [0x52ada8], ecx
cmovne eax, ecx
mov dword [0x52a6b4], eax
mov ecx, ebx
call fcn.0041ebb8
push edi
push edi
push 0x7d6
push dword [0x52a68c]
call esi
cmp eax, 4
jl 0x41d683
mov al, byte [0x4c1e25]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x10]
push eax
push 5
push 0x886
push dword [0x52a68c]
mov dword [ebp - 0xf], edi
call esi
push str..LOG
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41d683
push edi
or edx, 0xffffffff
call fcn.0040ba9b
pop ecx
push edi
push edi
push 0x81e
push dword [0x52a68c]
call esi
push edi
push edi
mov ebx, 0x919
push ebx
push dword [0x52a68c]
call esi
push edi
push 0x19d9e
push 0x111
push dword [0x52ab74]
call esi
push edi
or edx, 0xffffffff
call fcn.0040ba9b
pop ecx
push edi
push edi
push ebx
push dword [0x52a68c]
call esi
push edi
push edi
push 0x81f
push dword [0x52a68c]
call esi
push edi
or edx, 0xffffffff
call fcn.0040ba9b
pop ecx
call fcn.0040bcb7
cmp dword [ebp - 0x634], edi
je 0x41d699
push 0xc35f
push 1
call fcn.00401b50
pop ecx
pop ecx
mov ebx, dword [ebp - 0x630]
mov eax, ebx
jmp 0x41d6c5
cmp dword [ebp - 0x638], edi
jne 0x41d69f
lea eax, [ebp - 0x21c]
push eax
push 0xc350
push 1
call fcn.00401b50
add esp, 0xc
jmp 0x41d69f
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret