Function at 0x45c250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573338
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5d11ea], 1
jne 0x45c28e
mov eax, dword [0x5d11ec]
jmp 0x45c45b
lea edi, [ebp - 0x34]
call fcn.0045b710
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [eax]
push eax
call fcn.00401af0
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 0x2e], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c2d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 1
call fcn.00461d10
add esp, 4
cmp al, 1
jne 0x45c309
cmp dword [ebp - 0x18], esi
je 0x45c309
xor edx, edx
test bl, bl
setne dl
add edx, 2
mov ebx, edx
jmp 0x45c312
xor eax, eax
test bl, bl
setne al
mov ebx, eax
lea edi, [ebp - 0x38]
mov byte [ebp - 0x2d], 0
call fcn.0045b7f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x45c3ea
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c3ea
lea esi, [ebp - 0x3c]
call fcn.00401c90
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.00423cf0
add eax, 0x10
mov dword [ebp - 0x34], eax
mov edx, 0x580500
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040e610
lea eax, [ebp - 0x34]
mov edi, 0x5cee30
call fcn.00423c70
mov eax, esi
mov edi, 0x5cee34
call fcn.00423c70
call fcn.00402200
cmp al, 1
jne 0x45c3a4
mov edi, dword [ebp - 0x38]
push 0x5d0888
call fcn.00526c60
cmp eax, 1
jne 0x45c3a4
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c3c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c3ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
cmp ebx, 3
je 0x45c40a
cmp ebx, 2
je 0x45c40a
cmp byte [ebp - 0x2d], al
jne 0x45c412
xor ebx, ebx
xor al, al
cmp byte [ebp - 0x2e], bl
setne bl
add ebx, 2
jmp 0x45c412
cmp byte [ebp - 0x2d], 0
jne 0x45c412
xor al, al
mov byte [0x5c7f9c], al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [0x5d11ea], 1
mov dword [0x5d11ec], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x14], 0x10
jb 0x45c459
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0053c152
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret