Function at 0x541bd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, ecx
movaps xmmword [esp + 0x50], xmm0
mov esi, edx
mov dword [esp + 0x18], eax
push eax
mov dword [esp + 0x20], esi
movaps xmmword [esp + 0x64], xmm0
movaps xmmword [esp + 0x94], xmm0
movaps xmmword [esp + 0xa4], xmm0
mov dword [edi], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x541c3e
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x50]
sub esp, 8
call fcn.00536d50
add esp, 8
jmp 0x541c44
mov dword [edi], 2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x541e24
sub esp, 8
lea edx, [esp + 0x98]
mov ecx, esi
call fcn.00536d50
add esp, 8
cmp dword [edi], 0
jne 0x541e2a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x50]
push 0x5c6930
push eax
call esi
test eax, eax
je 0x541cf6
push 0x5c6930
lea eax, [esp + 0x94]
push eax
call esi
test eax, eax
je 0x541cf6
lea eax, [esp + 0x50]
push eax
call fcn.00582d08
add esp, 4
lea eax, [esp + 0x90]
fstp dword [esp + 0x14]
push eax
call fcn.00582d08
movss xmm0, dword [esp + 0x18]
add esp, 4
fstp dword [esp + 0x10]
movss xmm1, dword [esp + 0x10]
comiss xmm0, xmm1
jbe 0x541cd5
mov dword [edi], 1
comiss xmm1, xmm0
jbe 0x541cf6
mov dword [edi], 0xffffffff
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
jne 0x541e2a
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push dword [esp + 0x30]
call esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
call esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp esi, 0xffffffff
je 0x541df2
cmp eax, 0xffffffff
je 0x541df2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileTime]
call esi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call esi
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x4c]
jbe 0x541d97
mov dword [edi], 1
mov eax, str.FileCompare__s____s
jmp 0x541dd7
jae 0x541da6
mov dword [edi], 0xffffffff
mov eax, 0x5e283c
jmp 0x541dd7
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x48]
jbe 0x541dbd
mov dword [edi], 1
mov eax, str.FileCompare__s____s
jmp 0x541dd7
jae 0x541dcc
mov dword [edi], 0xffffffff
mov eax, 0x5e283c
jmp 0x541dd7
mov dword [edi], 0
mov eax, str.FileCompare__s___s
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call fcn.0054c5b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0x14]
jmp 0x541df8
mov dword [edi], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x541e06
push eax
call edi
cmp esi, 0xffffffff
je 0x541e2a
push esi
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xfffffffe
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret