Function at 0x421750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a31f
mov eax, dword fs:[0]
push eax
sub esp, 0xa74
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xa80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
ja 0x4218c3
je 0x4217d0
sub eax, 1
je 0x421b3f
sub eax, 1
je 0x421b3f
sub eax, 8
jne 0x421b3f
push esi
mov eax, ebx
call fcn.00421580
mov eax, dword [ebx + 0x1820]
push 0
push esi
push 0x1013
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421b3f
mov edi, dword [ebx + 0x1f9c]
cmp edi, dword [ebx + 0x1fa0]
jbe 0x4217e4
call dword [0x47c2fc]
mov esi, dword [ebx + 0x1f90]
mov dword [esp + 0x14], edi
mov edi, edi
mov edi, dword [ebx + 0x1fa0]
cmp dword [ebx + 0x1f9c], edi
jbe 0x421804
call dword [0x47c2fc]
mov eax, dword [ebx + 0x1f90]
test esi, esi
je 0x421812
cmp esi, eax
je 0x421818
call dword [0x47c2fc]
cmp dword [esp + 0x14], edi
je 0x421866
mov edi, dword [0x47c2fc]
test esi, esi
jne 0x42185e
call edi
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x421837
call edi
mov ecx, dword [esp + 0x14]
add ecx, 0x14
call dword [0x47c74c]
test esi, esi
jne 0x421862
call edi
xor eax, eax
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x421857
call edi
add dword [esp + 0x14], 0x18
jmp 0x4217f0
mov eax, dword [esi]
jmp 0x42182c
mov eax, dword [esi]
jmp 0x42184c
mov eax, dword [ebx + 0x1820]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1027
push eax
call esi
mov ecx, dword [ebx + 0x1820]
push 0
push 0
push 0x1028
push ecx
mov edi, eax
call esi
mov edx, dword [ebx + 0x1820]
push 0
push 0
push 0x1027
push edx
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1820]
add edi, ecx
push edi
push eax
push 0x1015
push edx
call esi
jmp 0x421b3f
cmp eax, 0x3e9
je 0x421aea
cmp eax, 0xffffffff
jne 0x421b3f
mov eax, dword [ebx + 0x1ef0]
cmp eax, 0xfffffffe
jne case.default.0x421964
mov ecx, dword [ebx + 0x2380]
test ecx, ecx
je 0x421917
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x2c0c], eax
call fcn.0041c260
lea edx, [ebx + 0x1ea8]
push edx
call fcn.0042aba0
push edx
push eax
call fcn.0041c1d0
add esp, 8
push 0x3ed
mov ecx, ebx
call fcn.00472870
cmp eax, 1
jne case.default.0x421964
lea esi, [ebx + 0x1ec0]
push esi
call fcn.00426dc0
mov edi, dword [ebx + 0x1ee8]
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
cmp edi, 1
jbe case.default.0x421964
call fcn.00419d90
mov eax, dword [ebx + 0x1fb0]
cmp eax, 4
ja case.default.0x421964
jmp dword [eax*4 + 0x421ba8]
xor edi, edi
call fcn.0041e0f0
jmp case.default.0x421964
mov edi, 1
call fcn.0041e0f0
jmp case.default.0x421964
push 2
call fcn.0041e180
add esp, 4
lea eax, [ebx + 0x1ca8]
call fcn.00426bc0
jmp case.default.0x421964
push 3
jmp 0x421988
lea eax, [esp + 0x18]
push eax
call fcn.0041daa0
add esp, 4
mov dword [esp + 0xa88], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x4219d1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4219f5
lea esi, [esp + 0x20]
call fcn.0041acf0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8c], 1
call dword [0x47c994]
mov ecx, esi
call dword [0x47ce24]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041e1d0
add esp, 4
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [0x47ce28]
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov byte [esp + 0xa8c], 2
call fcn.00472b8e
mov eax, dword [esp + 0x1c]
push 0x40
push eax
push 0x47d9d0
push 0x47d9d0
push 0x47d9d0
push 0x47d9d0
push str.3401097
call fcn.0047409c
push eax
mov ecx, ebx
call fcn.00472b46
mov edi, dword [sym.imp.WINMM.dll_mciSendCommandW]
push 0
push 0
push 0x808
push esi
call edi
push 0
push 0
push 0x804
push esi
call edi
lea eax, [ebx + 0x1ca8]
call fcn.00426bc0
lea ecx, [esp + 0x1c]
call dword [0x47ce24]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa88], 0xffffffff
call dword [0x47ce24]
xor eax, eax
mov esi, ebx
call fcn.00422450
mov ecx, dword [0x498578]
push ecx
lea ecx, [esp + 0x14]
call dword [0x47ce1c]
push str.ScheduleStart
lea ecx, [esp + 0x14]
call dword [0x47c854]
test eax, eax
jne 0x421ade
cmp dword [ebx + 0x2388], eax
jne 0x421ade
mov edx, dword [ebx + 0x20]
push eax
push 1
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x10]
call dword [0x47ce24]
jmp 0x421b3f
call fcn.004740f6
test eax, eax
jne 0x421b3f
push 4
lea eax, [esp + 0x28]
push eax
call fcn.00433100
lea ecx, [esp + 0x24]
mov dword [esp + 0xa88], 3
call fcn.00472b76
cmp eax, 1
jne 0x421b2b
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x108e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x24]
mov dword [esp + 0xa88], 0xffffffff
call int.00433250
mov edx, dword [ebx + 0x1fbc]
cmp edx, 0xffffffff
jne 0x421b8e
mov eax, dword [ebx + 0x1fb4]
lea esi, [ebx + 0x1fb4]
push edx
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, dword [ebx + 0x1fbc]
mov edx, dword [esi]
cmp eax, 1
mov eax, dword [edx + 0x1c]
mov ecx, esi
jne 0x421b8c
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xa80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call eax
xor eax, eax
mov ecx, dword [esp + 0xa80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4