Function at 0x417ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444d62
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x46706c]
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
mov ebx, ecx
push 0x104
lea eax, [ebp - 0x178]
push 0
push eax
call fcn.00426340
add esp, 0xc
lea eax, [ebp - 0x178]
mov edx, str.save_path
mov ecx, 0x455eb4
push str.ppslog.ini
push 0x104
push eax
push 0
call fcn.004017b0
cmp byte [ebp - 0x178], 0
jne 0x417d15
xor ecx, ecx
jmp 0x417d29
lea ecx, [ebp - 0x178]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417d20
sub ecx, edx
push ecx
lea eax, [ebp - 0x178]
lea esi, [ebx + 0x60]
push eax
mov ecx, esi
call fcn.00402740
mov edi, dword [ebx + 0x70]
test edi, edi
je 0x417d6f
push 1
push ecx
lea eax, [ebp - 0x17c]
mov byte [ebp - 0x17c], 0x5c
push eax
mov ecx, esi
call fcn.00402680
lea ecx, [edi - 1]
cmp eax, ecx
je 0x417d6f
push 1
push 0x454304
mov ecx, esi
call fcn.00402970
cmp dword [ebx + 0x70], 0
jne 0x417ddd
lea eax, [ebp - 0x1a4]
mov ecx, 0x46b120
push eax
call fcn.0040f4c0
mov edi, eax
mov dword [ebp - 4], 0
cmp esi, edi
je 0x417dcb
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x417da6
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00402ba0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x417dbe
mov eax, dword [esi]
jmp 0x417dc0
mov eax, esi
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.004096a0
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 0xffffffff
call fcn.004024e0
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00426340
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x180]
push eax
movzx eax, word [ebp - 0x182]
push eax
movzx eax, word [ebp - 0x184]
push eax
movzx eax, word [ebp - 0x186]
push eax
movzx eax, word [ebp - 0x18a]
push eax
movzx eax, word [ebp - 0x18c]
push eax
push str._4d__02d__02d__02d__02d__02d__u
lea eax, [ebp - 0x74]
push 0x64
push eax
call fcn.00402f60
add esp, 0x28
lea eax, [ebp - 0x204]
push eax
call fcn.00417f90
mov edi, eax
push str.ppslog_
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1ec]
call fcn.00413e10
push edi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d4]
call fcn.0040e170
add esp, 4
mov byte [ebp - 4], 3
mov edx, eax
lea ecx, [ebp - 0x1bc]
call fcn.00419840
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x1a4]
call fcn.0040d3e0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 5
cmp esi, edi
je 0x417eeb
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x417ec6
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00402ba0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x417ede
mov eax, dword [esi]
jmp 0x417ee0
mov eax, esi
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.004096a0
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 4
call fcn.004024e0
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 3
call fcn.004024e0
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 2
call fcn.004024e0
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 1
call fcn.004024e0
lea ecx, [ebp - 0x204]
mov dword [ebp - 4], 0xffffffff
call fcn.004024e0
cmp dword [esi + 0x14], 0x10
jb 0x417f43
mov eax, dword [esi]
jmp 0x417f45
mov eax, esi
test eax, eax
je 0x417f59
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417f59
test al, 0x10
jne 0x417f69
cmp dword [esi + 0x14], 0x10
jb 0x417f61
mov esi, dword [esi]
push esi
mov ecx, ebx
call fcn.00417ac0
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.0042318e
mov esp, ebp
pop ebp
ret