Function at 0x4497a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58f43c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
lea eax, [esp + 0xc]
push eax
call fcn.004030f0
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0044e4e0
add esp, 4
test eax, eax
jne 0x449827
mov byte [esp + 0x24], al
lea edx, [esp + 0xc]
push edx
call fcn.00403090
mov dword [esp + 0x24], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.00403090
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x449849
xor ecx, ecx
lea eax, [esp + 0xc]
call fcn.00403340
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x44991a
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00448540
mov byte [esp + 0x24], 2
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x44990b
lea eax, [esp + 0x10]
push eax
call fcn.004030f0
mov byte [esp + 0x24], 3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
call fcn.00449cf0
test eax, eax
jne 0x4498ef
mov byte [esp + 0x24], 2
lea ecx, [esp + 0x10]
push ecx
call fcn.00403090
mov byte [esp + 0x24], 1
lea edx, [esp + 0x14]
push edx
call fcn.00403090
mov byte [esp + 0x24], 0
lea eax, [esp + 0xc]
push eax
call fcn.00403090
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403090
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
lea ecx, [esp + 0x10]
call fcn.0044dc80
test eax, eax
jne 0x449951
mov byte [esp + 0x24], 2
lea edx, [esp + 0x10]
push edx
call fcn.00403090
mov byte [esp + 0x24], 1
lea eax, [esp + 0x14]
push eax
call fcn.00403090
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xc]
push ecx
call fcn.00403090
mov dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x2c]
push edx
call fcn.00403090
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
lea eax, [esp + 0x18]
push eax
call fcn.0044df00
add esp, 4
mov byte [esp + 0x24], 4
xor ecx, ecx
mov esi, eax
call fcn.00403390
push eax
xor ecx, ecx
lea esi, [esp + 0x14]
call fcn.00403390
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x5d8658
push str.cachelibver
call edi
mov byte [esp + 0x24], 3
lea ecx, [esp + 0x18]
push ecx
call fcn.00403090
lea edx, [esp + 0x18]
push edx
call fcn.0044df00
add esp, 4
mov byte [esp + 0x24], 5
xor ecx, ecx
mov esi, eax
call fcn.00403390
push eax
xor ecx, ecx
lea esi, [esp + 0x14]
call fcn.00403390
push eax
push 0x5d8660
push str.cachelibver
call edi
mov byte [esp + 0x24], 3
lea eax, [esp + 0x18]
push eax
call fcn.00403090
mov byte [esp + 0x24], 2
mov ecx, esi
push ecx
call fcn.00403090
mov byte [esp + 0x24], 1
lea edx, [esp + 0x14]
push edx
call fcn.00403090
mov byte [esp + 0x24], 0
lea eax, [esp + 0xc]
push eax
call fcn.00403090
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403090
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4