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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x5b9f54]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov ebx, 0x206
push edi
push ebx
mov word [ebp - 0x41c], ax
xor edi, edi
lea eax, [ebp - 0x41a]
push edi
push eax
call fcn.004cbf40
mov ax, word [0x5b9f58]
push ebx
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push edi
push eax
call fcn.004cbf40
add esp, 0x18
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x630], edi
cmp dword [ebp + 8], edi
jne 0x41140c
push edi
push edi
push 1
push edi
call fcn.00411a67
add esp, 0x10
test eax, eax
je 0x411a56
cmp dword [ebp + 0xc], edi
je 0x411576
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 0x5bcdc0
push 0x5b9f5c
push ebx
call esi
push ebx
push 0xfb05
push dword [0x5c0b74]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x5c0b74]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x5b82fc], edi
jne 0x411467
push 0x5b9f60
push 0x5b8300
call esi
push 0x5bcd60
push edi
push edi
call fcn.0040af1d
push edi
push 0x5b9f13
push dword [0x5c0b8c]
call fcn.0040532b
push edi
push dword [0x5c0b8c]
call fcn.0041976d
mov eax, dword [0x5bd198]
add esp, 0x20
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x5bcd54], edi
mov dword [0x5b82f4], edi
mov eax, dword [eax*4 + 0x561f8c]
push edi
push eax
push 0x7ef
push dword [0x5c0b8c]
mov dword [0x5bcd48], eax
call esi
mov ecx, dword [0x5bd1ac]
mov eax, 0xfde9
test ecx, ecx
mov dword [0x5bcd50], ecx
push edi
cmove eax, dword [0x5bcd44]
push eax
push 0x7f5
push dword [0x5c0b8c]
mov dword [0x5bcd4c], ecx
call esi
push edi
push 0x5b9f16
push dword [0x5c0b8c]
call fcn.0040532b
add esp, 0xc
cmp dword [0x5bcd54], edi
jne 0x41151d
mov eax, dword [0x5bcd50]
cmp eax, dword [0x5bcd4c]
je 0x411520
xor edi, edi
inc edi
push 0x5b8300
push dword [0x5b82f4]
push 0x2715
push edi
push dword [0x5bd234]
push ebx
push 0x2713
push dword [0x5b9c40]
push dword [0x561f88]
push dword [0x5c0b74]
call fcn.0040cb4a
mov ecx, dword [0x5bd15c]
xor edx, edx
add esp, 0x28
cmp dword [0x5bd158], edx
cmovne ecx, edx
xor eax, eax
mov dword [0x5bd15c], ecx
inc eax
jmp 0x411a58
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
je 0x41159c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41159c
push esi
lea eax, [ebp - 0x41c]
push eax
call ebx
mov esi, 0x104
jmp 0x4115c0
push edi
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push eax
push dword [0x5c0b74]
call fcn.00411f59
add esp, 0x10
test eax, eax
je 0x411a56
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040d83a
pop ecx
pop ecx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41163c
push esi
push 0x5b9c88
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41164c
push edi
lea eax, [ebp - 0x624]
push eax
push esi
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x41164c
lea eax, [ebp - 0x624]
jmp 0x411642
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp - 0x214]
push eax
call fcn.0040d886
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040d8ca
lea eax, [ebp - 0x214]
push eax
call fcn.0040d70b
add esp, 0x10
test eax, eax
je 0x411689
lea eax, [ebp - 0x214]
push esi
push eax
push eax
call fcn.0040d70e
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x10], edi
jne 0x4117c5
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4117c5
cmp dword [0x5b9eec], edi
jne 0x4116d4
lea eax, [ebp - 0x214]
push eax
push 0xc366
push 2
call fcn.004024f0
add esp, 0xc
cmp eax, 6
jne 0x411a56
push edi
push 0x80
push 1
push edi
push 3
push 0x40000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x628], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [0x5bd018], eax
mov eax, dword [ebp - 0x628]
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 0x628], ebx
je 0x4117fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5bcd60
push edi
push edi
call fcn.0040af1d
push edi
push 0x5b9f17
push dword [0x5c0b8c]
call fcn.0040532b
push edi
push dword [0x5c0b8c]
call fcn.0041976d
mov eax, dword [0x5bd198]
add esp, 0x20
mov eax, dword [eax*4 + 0x561f8c]
push edi
push eax
push 0x7ef
push dword [0x5c0b8c]
mov dword [0x5bcd48], eax
call esi
mov ecx, dword [0x561f80]
cmp ecx, 0xffffffff
jne 0x411780
mov ecx, dword [0x5bd1ac]
test ecx, ecx
mov dword [0x5bcd4c], ecx
push edi
mov eax, 0xfde9
mov dword [0x5bcd50], ecx
cmove eax, dword [0x5bcd44]
push eax
push 0x7f5
push dword [0x5c0b8c]
call esi
push edi
push 0x5b9f1a
push dword [0x5c0b8c]
mov dword [0x5b82f4], edi
call fcn.0040532b
add esp, 0xc
jmp 0x4117fb
push edi
push edi
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0x5bcd48
push 0x5bcd50
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push eax
push 1
call fcn.0041124a
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0x628], ebx
test ebx, ebx
je 0x411a36
lea eax, [ebp - 0x214]
mov ebx, 0x5bcdc0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0xfb05
push dword [0x5c0b74]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x5c0b74]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x5b82fc], edi
jne 0x411859
push 0x5b9f64
push 0x5b8300
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [0x5b9ee8], edi
jne 0x41186f
push ebx
push dword [0x5c0b8c]
call fcn.004197e0
pop ecx
pop ecx
mov eax, dword [0x5bcd50]
push edi
push dword [0x5bcd48]
mov dword [0x5bcd4c], eax
push 0x7ef
push dword [0x5c0b8c]
mov dword [0x5bcd54], edi
call esi
push dword [0x5b9ea8]
lea eax, [ebp - 0x214]
push dword [0x5b9ea4]
push eax
push dword [0x5bd024]
call fcn.0040dd2c
add esp, 0x10
cmp dword [0x5b9ef0], 2
jne 0x4118cc
lea eax, [ebp - 0x214]
push eax
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
cmp dword [0x5bcd54], edi
jne 0x4118e5
mov eax, dword [0x5bcd50]
cmp eax, dword [0x5bcd4c]
jne 0x4118e5
mov eax, edi
jmp 0x4118e8
xor eax, eax
inc eax
push 0x5b8300
push dword [0x5b82f4]
push 0x2715
push eax
push dword [0x5bd234]
lea eax, [ebp - 0x214]
push eax
push 0x2713
push dword [0x5b9c40]
push dword [0x561f88]
push dword [0x5c0b74]
call fcn.0040cb4a
add esp, 0x28
cmp dword [ebp + 0x10], edi
jne 0x41193f
mov eax, dword [0x5bd15c]
xor ecx, ecx
cmp dword [0x5bd158], ecx
cmovne eax, ecx
mov dword [0x5bd15c], eax
push edi
push edi
push 0x7d6
push dword [0x5c0b8c]
call esi
cmp eax, 4
jl 0x411a16
mov al, byte [0x5b9f1b]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
push 5
push 0x886
push dword [0x5c0b8c]
mov dword [ebp - 0xb], edi
call esi
push str..LOG
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x411a16
push edi
push 0xffffffffffffffff
push dword [0x5c0b8c]
call fcn.0040a0e4
add esp, 0xc
push edi
push edi
push 0x81e
push dword [0x5c0b8c]
call esi
push edi
push edi
mov ebx, 0x919
push ebx
push dword [0x5c0b8c]
call esi
push edi
push 0x19d9e
push 0x111
push dword [0x5c0b74]
call esi
push edi
push 0xffffffffffffffff
push dword [0x5c0b8c]
call fcn.0040a0e4
add esp, 0xc
push edi
push edi
push ebx
push dword [0x5c0b8c]
call esi
push edi
push edi
push 0x81f
push dword [0x5c0b8c]
call esi
push edi
push 0xffffffffffffffff
push dword [0x5c0b8c]
call fcn.0040a0e4
push dword [0x5c0b8c]
call fcn.0040a16b
add esp, 0x10
cmp dword [ebp - 0x62c], edi
je 0x411a2c
push 0xc35f
push 1
call fcn.004024f0
pop ecx
pop ecx
mov ebx, dword [ebp - 0x628]
mov eax, ebx
jmp 0x411a58
cmp dword [ebp - 0x630], edi
jne 0x411a32
lea eax, [ebp - 0x214]
push eax
push 0xc350
push 1
call fcn.004024f0
add esp, 0xc
jmp 0x411a32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret