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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602153
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
mov esi, 1
push ecx
mov edx, esp
mov dword [ebp - 0x1c], 0
mov eax, dword [eax + 4]
mov dword [edx], eax
lea edx, [eax - 8]
cmp edx, 0x7a1354
je 0x417355
mov eax, esi
lock xadd dword [edx], eax
lea ecx, [ebp - 0x54]
call fcn.004fead0
lea edx, [ebp - 0x54]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004fd770
lea ecx, [ebp - 0x54]
call fcn.00401e20
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, esp
mov eax, dword [eax + 4]
mov dword [ecx], eax
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x417397
lock xadd dword [eax], esi
lea ecx, [ebp - 0x88]
call fcn.004fead0
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004fd770
lea ecx, [ebp - 0x88]
mov dword [ebp + 0x10], 0xfc
call fcn.00401e20
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebx + 4]
call fcn.00523d90
test al, al
je 0x4173ff
mov eax, dword [ebp - 0x10]
mov esi, 0x7a135c
mov dword [ebp + 0x10], 0xfd
cmp eax, esi
je 0x417402
push esi
push eax
call fcn.0041c700
add esp, 8
test eax, eax
je 0x417402
xor bl, bl
jmp 0x417404
mov esi, dword [ebp + 8]
mov bl, 1
or edi, 0xffffffff
test byte [ebp + 0x10], 1
je 0x41742b
add esi, 0xfffffff8
cmp esi, 0x7a1354
je 0x41742b
mov eax, edi
lock xadd dword [esi], eax
test eax, eax
jne 0x41742b
push esi
call fcn.004a8172
add esp, 4
test bl, bl
je 0x41743d
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x417516
mov ebx, dword [ebp - 0x18]
add ebx, 4
push 0x5c
mov ecx, ebx
call fcn.00518740
inc eax
mov ecx, ebx
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00526f80
push ecx
mov eax, esp
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov dword [eax], esi
lea eax, [ebp + 0xc]
push eax
call fcn.00527e80
add esi, 0xfffffff8
mov byte [ebp - 4], 6
cmp esi, 0x7a1354
je 0x417493
mov eax, edi
lock xadd dword [esi], eax
test eax, eax
jne 0x417493
push esi
call fcn.004a8172
add esp, 4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x4174bb
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x10]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 6
cmp eax, 0xffffffff
jne 0x4174ec
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.005243f0
test al, al
je 0x4174ec
lea edx, [ebp + 0xc]
lea ecx, [ebp + 0x10]
call fcn.0041e2d0
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esi], ecx
lea ecx, [ebp + 0x10]
call fcn.004182e0
jmp 0x4174f5
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x417516
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x417516
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x417537
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x417537
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x417555
lock xadd dword [eax], edi
test edi, edi
jne 0x417555
push eax
call fcn.004a8172
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc