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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5c4e
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x74], 0
mov al, byte [0x4ff5ad]
mov dword [ebp - 0x7c], ecx
nop
test al, al
je 0x426780
xor al, al
jmp 0x426b68
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov eax, dword [edx]
push 1
push ecx
lea ecx, [ebp - 0x38]
push dword [eax]
call fcn.0040f7a0
cmp dword [ebp - 0x38], 0
je 0x426b66
push str.Driver
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041bd90
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x426846
push str.Name
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0041bd90
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x426830
mov ecx, eax
call fcn.00402b30
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xc4]
call fcn.00402b30
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x426b50
cmp dword [ebp - 0x18], 8
lea edi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x2c]
test ecx, ecx
je 0x426885
xor esi, esi
mov edx, edi
test ecx, ecx
je 0x426874
cmp word [edi], 0x5c
je 0x426872
cmp ecx, 1
je 0x426874
add edx, 2
dec ecx
cmp word [edx], 0x5c
jne 0x426863
mov esi, edx
test esi, esi
je 0x426885
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
jne 0x42695d
call fcn.00420e60
test al, al
je 0x426898
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push str._spoolPrtprocs_
mov byte [ebp - 4], 2
call fcn.00406eb0
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004072a0
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 3
push dword [edi + 4]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040edb0
push 0x4c5fe4
push eax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 4
push eax
call fcn.00405a60
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040edb0
add esp, 0x30
lea ecx, [ebp - 0xc4]
call fcn.00402b30
lea ecx, [ebp - 0x94]
call fcn.00402b30
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 9
call fcn.00402b30
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42693d
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ec0
lea ecx, [ebp - 0x58]
call fcn.00402b30
mov byte [ebp - 4], 1
call fcn.00420e60
test al, al
je 0x426960
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x426960
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x40], xmm0
call fcn.00405980
push str.DisplayName
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041bd90
add esp, 0x10
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x60], 0
jne 0x4269a9
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x94]
call fcn.004026f0
mov ecx, 1
jmp 0x4269bd
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xac]
call fcn.0040f130
mov ecx, 2
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x14], ecx
mov ecx, esi
push eax
call fcn.00404ef0
mov eax, dword [ebp - 0x14]
test al, 2
je 0x4269ec
and eax, 0xfffffffd
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x74], eax
call fcn.00402b30
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
test al, 1
je 0x426a0b
and eax, 0xfffffffe
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x74], eax
call fcn.00402b30
mov eax, dword [edi + 8]
xor edx, edx
mov ecx, 2
cmp byte [eax], dl
lea eax, [ebp - 0x2c]
cmovne ecx, edx
or ecx, 0x40000
mov dword [esi + 0xd0], ecx
lea ecx, [esi + 0x60]
cmp ecx, eax
je 0x426a41
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00402740
cmp dword [ebp - 0x18], 8
lea edi, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmovae edi, dword [ebp - 0x2c]
test ecx, ecx
je 0x426a94
xor esi, esi
mov edx, edi
test ecx, ecx
je 0x426a72
cmp word [edi], 0x5c
je 0x426a70
cmp ecx, 1
je 0x426a72
add edx, 2
dec ecx
cmp word [edx], 0x5c
jne 0x426a61
mov esi, edx
test esi, esi
je 0x426a94
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
je 0x426a94
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040f130
or dword [ebp - 0x14], 4
jmp 0x426aa6
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xac]
call fcn.0041fda0
or dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x40]
push eax
lea ecx, [esi + 0x48]
call fcn.00404ef0
mov eax, dword [ebp - 0x14]
test al, 8
je 0x426acd
and eax, 0xfffffff7
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x14], eax
call fcn.00402b30
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
test al, 4
je 0x426ae3
lea ecx, [ebp - 0x94]
call fcn.00402b30
mov edi, dword [ebp - 0x3c]
sub esp, 8
mov eax, esp
xor dl, dl
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x426b02
lock inc dword [edi + 4]
xor ecx, ecx
mov dword [eax], esi
mov dword [eax + 4], edi
call fcn.0041bea0
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x40]
add esp, 8
mov ecx, dword [ecx + 0xc]
push eax
call fcn.00404d60
lea ecx, [ebp - 0x70]
call fcn.00402b30
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x426b50
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x426b50
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x426b50
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.00402b30
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x426b66
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret 8