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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602080
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 edi, ecx
mov eax, dword [ebp + 0xc]
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 0x416de0
mov eax, 1
lock xadd dword [edx], eax
lea ecx, [ebp - 0x50]
call fcn.004fead0
lea edx, [ebp - 0x50]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004fd770
lea ecx, [ebp - 0x50]
call fcn.00401e20
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0x7a135c
je 0x416fe8
push 0x7a135c
push eax
call fcn.0041c700
add esp, 8
test eax, eax
je 0x416fe5
add edi, 4
push 0x5c
mov ecx, edi
call fcn.00518740
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00526f80
push ecx
mov eax, esp
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [eax], esi
lea eax, [ebp + 0xc]
push eax
call fcn.00527e80
lea ecx, [esi - 8]
or esi, 0xffffffff
cmp ecx, 0x7a1354
je 0x416e7f
mov eax, esi
lock xadd dword [ecx], eax
test eax, eax
jne 0x416e7f
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [eax], 0
je 0x416f07
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00418480
push dword [eax]
call ebx
mov byte [ebp - 4], 4
cmp eax, 0xffffffff
je 0x416f07
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff8
mov dword [edi], 0
cmp ecx, 0x7a1354
je 0x416ed3
mov eax, esi
lock xadd dword [ecx], eax
test eax, eax
jne 0x416ed3
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x416ef1
lock xadd dword [eax], esi
test esi, esi
jne 0x416ef1
push eax
call fcn.004a8172
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00418480
push dword [eax]
call ebx
mov byte [ebp - 4], 4
test al, 0x10
je 0x416f33
cmp eax, 0xffffffff
je 0x416f33
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00523fe0
jmp 0x416f3e
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00527220
test al, al
je 0x416f56
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0041e2d0
mov ebx, 0x7b
mov ecx, dword [eax]
jmp 0x416f60
lea eax, [ebp - 0x14]
mov ebx, 0x7d
xor ecx, ecx
mov edi, dword [ebp + 8]
mov dword [eax], 0
mov dword [edi], ecx
test bl, 4
je 0x416f7b
lea ecx, [ebp - 0x14]
and ebx, 0xfffffffb
call fcn.004182e0
test bl, 2
je 0x416f88
lea ecx, [ebp - 0x18]
call fcn.004182e0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x416fa9
mov eax, esi
lock xadd dword [ecx], eax
test eax, eax
jne 0x416fa9
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x416ef1
lock xadd dword [eax], esi
test esi, esi
jne 0x416ef1
push eax
call fcn.004a8172
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [esi], 0
cmp eax, 0x7a1354
je 0x41700f
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test ecx, ecx
jne 0x41700f
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 8