Function at 0x4c8a70
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004c99d0
mov ecx, esi
call fcn.004c7ab0
lea ebx, [esi + 0x365c]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3418]
test eax, eax
jne 0x4c8aa2
xor edx, edx
jmp 0x4c8abb
mov ecx, dword [esi + 0x341c]
sub ecx, eax
mov eax, 0x18d7d2f9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
xor edi, edi
test edx, edx
jle 0x4c8d3c
mov eax, dword [esi + 0x3418]
mov ecx, dword [esp + 0x18]
add eax, 0xa38
cmp dword [eax], ecx
je 0x4c8af1
inc edi
add eax, 0x149c
cmp edi, edx
jl 0x4c8ad4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
cmp edi, 0xffffffff
jle 0x4c8d3c
lea ebp, [esi + 0xd5c]
mov ecx, ebp
call fcn.005042b0
imul edi, edi, 0x149c
mov ecx, dword [esi + 0x3418]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
add edi, ecx
lea edx, [esi + 0x2b40]
lea ecx, [edi + 0xc]
push ecx
push 0x53d4a4
push 0x103
push edx
call ebx
mov eax, dword [edi + 0xa3c]
lea ecx, [edi + 0xa40]
mov dword [esi + 0x31ec], eax
push ecx
lea eax, [esi + 0x31f0]
push 0x53d4a4
push 0x103
push eax
call ebx
add esp, 0x20
lea eax, [edi + 0xe84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c8b9e
lea eax, [edi + 0xe84]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4c8b97
lea edx, [edi + 0x108c]
push 1
push edx
push eax
lea ecx, [esi + 0x24]
call fcn.00493930
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi + 0x24]
call fcn.00494590
test eax, eax
jne 0x4c8bbb
lea eax, [esi + 0x31f0]
push 1
push eax
lea ecx, [esi + 0x24]
call fcn.00493b20
lea eax, [edi + 0xc60]
lea ecx, [esi + 0x343c]
push eax
push 0x53d4a4
push 0x103
push ecx
call ebx
mov edx, dword [edi + 0xc5c]
add esp, 0x10
mov dword [esi + 0x342c], edx
mov eax, dword [edi + 0xc58]
mov dword [esi + 0x3434], eax
mov ecx, dword [edi + 0xe68]
mov dword [esi + 0x340c], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0x3430], edx
mov eax, dword [edi + 4]
push 0
push 0
push 0
mov dword [esi + 0x3424], eax
mov ecx, dword [edi + 0xe6c]
mov eax, dword [esi + 0x340c]
push 0
push 0
push 0x1e
mov dword [esi + 0x3438], ecx
mov ecx, dword [esi + 0x342c]
mov edx, dword [edi + 0xe70]
push eax
push 0
push 0x56d0e0
push ecx
push 0x56d10c
mov ecx, ebp
mov dword [esi + 0x3648], edx
call fcn.00502ef0
push 0x96
push 0
mov ecx, ebp
call fcn.00504720
mov dword [esi + 0xd94], 1
mov al, byte [edi + 8]
test al, 1
je 0x4c8c8f
lea edx, [edi + 0x214]
lea eax, [esi + 0x2d48]
push edx
push 0x53d4a4
push 0x104
push eax
call ebx
add esp, 0x10
cmp dword [edi + 4], 1
jl 0x4c8cb8
mov eax, dword [edi + 0xc4c]
mov edx, dword [ebp]
push 0
push eax
push 0x1388
push 0xffffffffffffffff
lea ecx, [edi + 0x41c]
push 0
push ecx
push 0
mov ecx, ebp
call dword [edx + 0x24]
cmp dword [edi + 4], 2
jl 0x4c8ce1
mov eax, dword [edi + 0xc50]
mov edx, dword [ebp]
push 0
push eax
push 0x1389
push 0xffffffffffffffff
lea ecx, [edi + 0x624]
push 0
push ecx
push 0
mov ecx, ebp
call dword [edx + 0x24]
cmp dword [edi + 4], 3
jl 0x4c8d0a
mov eax, dword [edi + 0xc54]
mov edx, dword [ebp]
push 0
push eax
push 0x138a
push 0xffffffffffffffff
lea ecx, [edi + 0x82c]
push 0
push ecx
push 0
mov ecx, ebp
call dword [edx + 0x24]
mov edx, dword [edi + 0xa38]
mov ecx, esi
mov dword [esi + 0x3428], edx
call fcn.004c8ef0
cmp dword [edi], 0
jne 0x4c8d2a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4