Function at 0x45d8c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574a78
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5c5678]
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 [0x5d3232], 1
jne 0x45d8fe
mov eax, dword [0x5d3234]
jmp 0x45dacb
lea edi, [ebp - 0x34]
call fcn.0045cd80
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [eax]
push eax
call fcn.00401b90
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 0x45d941
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.004633b0
add esp, 4
cmp al, 1
jne 0x45d979
cmp dword [ebp - 0x18], esi
je 0x45d979
xor edx, edx
test bl, bl
setne dl
add edx, 2
mov ebx, edx
jmp 0x45d982
xor eax, eax
test bl, bl
setne al
mov ebx, eax
lea edi, [ebp - 0x38]
mov byte [ebp - 0x2d], 0
call fcn.0045ce60
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x45da5a
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45da5a
lea esi, [ebp - 0x3c]
call fcn.00401d30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004254c0
add eax, 0x10
mov dword [ebp - 0x34], eax
mov edx, 0x5827e8
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040eec0
lea eax, [ebp - 0x34]
mov edi, 0x5d0e70
call fcn.00425450
mov eax, esi
mov edi, 0x5d0e74
call fcn.00425450
call fcn.00402290
cmp al, 1
jne 0x45da14
mov edi, dword [ebp - 0x38]
push 0x5d28d0
call fcn.00528230
cmp eax, 1
jne 0x45da14
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 0x45da37
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 0x45da5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
cmp ebx, 3
je 0x45da7a
cmp ebx, 2
je 0x45da7a
cmp byte [ebp - 0x2d], al
jne 0x45da82
xor ebx, ebx
xor al, al
cmp byte [ebp - 0x2e], bl
setne bl
add ebx, 2
jmp 0x45da82
cmp byte [ebp - 0x2d], 0
jne 0x45da82
xor al, al
mov byte [0x5c9fcc], al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [0x5d3232], 1
mov dword [0x5d3234], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45dab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x14], 0x10
jb 0x45dac9
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0053d782
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.0053d78d
mov esp, ebp
pop ebp
ret