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

Disassembly:
push ebp
lea ebp, [esp - 0x45c]
sub esp, 0x45c
push 0xffffffffffffffff
push 0x53c9c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58213c]
xor eax, ebp
mov dword [ebp + 0x458], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x464]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x468]
or esi, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0
cmp byte [eax], 0
je 0x42407a
lea eax, [ebp + 0x468]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call edi
mov byte [ebp - 4], 0
cmp eax, esi
jne 0x424101
mov eax, dword [ebp + 0x468]
push str..lnk
push ecx
mov ecx, esp
mov dword [ecx], eax
add eax, 0xfffffff8
cmp eax, section..data
je 0x424091
lock inc dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.0040f120
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00420b70
mov eax, dword [ebp + 0x468]
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x468], ecx
lea ecx, [eax - 8]
cmp ecx, section..data
je 0x4240da
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4240da
push ecx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
mov byte [ebp - 4], 0
cmp ecx, section..data
je 0x424101
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x424101
push ecx
call fcn.00511f41
add esp, 4
mov eax, dword [ebp + 0x468]
cmp byte [eax], 0
je 0x424294
lea eax, [ebp + 0x468]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call edi
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
je 0x424294
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
push 0x550fb8
push 1
push 0
push 0x559898
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42426c
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x42426f
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x424186
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x551054
push esi
call edi
test eax, eax
js 0x42426c
mov esi, dword [ebp - 0x10]
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
lea eax, [ebp + 0x468]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00413a00
add esp, 8
push 0
push dword [eax]
push esi
call edi
test eax, eax
js 0x42426c
cmp byte [ebp + 0x46c], 0
je 0x4241e9
mov eax, dword [ebp - 0x14]
push 3
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
js 0x42426c
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.00514400
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
movzx ecx, byte [ebp + 0x46c]
xor ecx, 1
lea ecx, [ecx*4 + 2]
push ecx
lea ecx, [ebp]
push ecx
push 0x104
lea ecx, [ebp + 0x250]
push ecx
push eax
call edx
test eax, eax
js 0x42426c
lea eax, [ebp + 0x250]
push eax
push ebx
call fcn.00408ac0
add esp, 8
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x42424e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x42425f
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
lea ecx, [ebp + 0x468]
call fcn.00405e80
jmp 0x4242bd
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 8
test eax, eax
je 0x424283
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 9
test esi, esi
je 0x424291
mov eax, dword [esi]
push esi
call dword [eax + 8]
or esi, 0xffffffff
mov eax, dword [ebp + 0x468]
add eax, 0xfffffff8
mov dword [ebx], 0x582008
cmp eax, section..data
je 0x4242bd
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x4242bd
push eax
call fcn.00511f41
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.00511b56
lea esp, [ebp + 0x45c]
pop ebp
ret