Function at 0x4c4dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a270
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebx + 0x18]
jne 0x4c50ad
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4c50ad
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4c50ad
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c4e33
cmp eax, 8
jne 0x4c50ad
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0
push ecx
mov ecx, dword [esi]
call fcn.00401640
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x44], 1
call fcn.0042a2b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.004048c0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x44], 2
mov eax, dword [ebx + 0x28]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov edi, esp
call fcn.004048c0
add eax, 0x10
mov dword [edi], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.00488580
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [eax - 0xc], 0x104
jl 0x4c4ec8
lea ecx, [esp + 0x10]
push ecx
call fcn.0041e5f0
lea edx, [esp + 0x10]
push edx
call fcn.0042a2b0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c5060
mov ecx, dword [esi + 0x50]
dec ecx
push ecx
lea eax, [ebx + 0x4074]
call fcn.004c2de0
mov edi, eax
cmp edi, 0xffffffff
je 0x4c4ffb
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
push edi
lea esi, [esp + 0x20]
call fcn.004c5ca0
add esp, 8
mov byte [esp + 0x40], 3
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
mov dword [esp + 0x20], edx
call fcn.004048c0
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [ebx + 0x4034]
push edx
mov byte [esp + 0x4c], 4
call fcn.00478790
lea eax, [esp + 0x20]
call fcn.004c50d0
mov eax, esi
mov byte [esp + 0x40], 1
call fcn.004c50d0
lea esi, [ebx - 0x24]
mov ecx, edi
call fcn.004c50f0
test eax, eax
je 0x4c4ff8
push 0xc
call fcn.004e4a44
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [ebx + 0x18]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [eax + 8], ecx
cmp edi, 0xffff
jb 0x4c4fa9
call fcn.004c59c0
mov edx, edi
shr edx, 5
lea eax, [ebx + edx*4 + 0x2034]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
push ecx
mov dword [esp + 0x24], esp
mov esi, esp
or dword [eax], edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [esp + 0x48], 5
call fcn.0048c150
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
mov byte [esp + 0x48], 1
call fcn.0048c1c0
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.004048c0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi]
push eax
lea esi, [esp + 0x20]
call fcn.004c5ca0
add esp, 8
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
mov byte [esp + 0x44], 6
call fcn.004c5d20
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
add ebx, 0x4054
push ebx
mov byte [esp + 0x4c], 7
call fcn.00426600
lea esi, [esp + 0x20]
call fcn.00499ca0
lea eax, [esp + 0x18]
call fcn.004c50d0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c50ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc