Function at 0x427db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5162b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x56e754]
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 edi, edx
mov dword [ebp - 0x60], edi
mov eax, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
call fcn.004407d0
xor bl, bl
xor bh, bh
nop dword [eax + eax]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00440760
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 0xc]
jg 0x427f6a
jl 0x427e35
cmp ecx, dword [ebp + 8]
jae 0x427f6a
mov esi, dword [edi]
mov bh, 1
mov edi, dword [edi + 4]
mov dword [ebp - 0x44], edi
cmp esi, edi
je 0x427f6a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x427e51
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x427f31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x427f38
cmp eax, 3
je 0x427f38
cmp eax, 0x20
je 0x427e96
cmp eax, 5
je 0x427f38
xor bh, bh
test bl, bl
jne 0x427f3c
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0043a5b0
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x427ebb
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, 0x574a40
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x7c], eax
call fcn.004397a0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [eax]
push 0x546490
push 2
call fcn.00431da0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x427f1d
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x427f1d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x427f1d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b400
mov edi, dword [ebp - 0x44]
jmp 0x427f3c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bh, bh
jne 0x427f54
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x32
mov bl, 1
mov dword [ebp - 0x6c], 0
call fcn.0042efe0
add esi, 0x18
cmp esi, edi
jne 0x427e47
mov edi, dword [ebp - 0x60]
test bh, bh
je 0x427e10
xor eax, eax
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 3
test bh, bh
je 0x427f94
mov esi, dword [ebp - 0x64]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
jmp 0x4280c2
mov edx, dword [ebp - 0x60]
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x5c], edx
cmp esi, edx
je 0x4280b7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x427fb1
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x427fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x427ff4
cmp eax, 3
je 0x427ff4
cmp eax, 0x20
jne 0x427fe5
mov al, 1
jmp 0x427ff6
cmp eax, 5
setne al
jmp 0x427ff6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
test al, al
je 0x4280a5
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0043a5b0
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], 8
jb 0x428016
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, 0x574a40
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x6c], eax
call fcn.004397a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [eax]
push str.File_still_in_use_after_timeout__filePath:__s__timeout:__d_ms_
push 3
call fcn.00431da0
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x74]
test ebx, ebx
je 0x428078
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x428078
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x428078
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0041b400
push esi
cmp dword [ebp - 0x50], edi
je 0x428099
mov ecx, edi
call fcn.0041a7e0
add edi, 0x18
mov dword [ebp - 0x54], edi
jmp 0x4280a5
push edi
lea ecx, [ebp - 0x58]
call fcn.0042f850
mov edi, dword [ebp - 0x54]
add esi, 0x18
cmp esi, dword [ebp - 0x5c]
jne 0x427fa7
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x64]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.0042c330
mov eax, esi
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.004ca771
mov esp, ebp
pop ebp
ret