Function at 0x460090
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef682
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x53d100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x250
call fcn.004cb944
mov esi, esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4600e7
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.FilesDiff_PostScan_CollectSxsInfo:_In
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x460123
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c463d
test eax, eax
je 0x46013d
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x46013d
push str.FilesDiff_PostScan_CollectSxsInfo:_In
call fcn.004cb5ea
add esp, 4
push eax
push str.FilesDiff_PostScan_CollectSxsInfo:_In
mov ecx, esi
call fcn.004253ae
push ecx
mov dword [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x24], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x460167
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, str.General
shr eax, 0x10
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4601a5
mov ecx, str.General
movzx ebx, cx
push ebx
call fcn.004c463d
test eax, eax
je 0x4601bf
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x4601bf
push str.General
call fcn.004cb5ea
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 1
or edi, 0xffffffff
push 1
mov dword [ebp - 4], edi
call fcn.0047d3f0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x460409
mov esi, dword [eax + 0x24]
cmp esi, dword [eax + 0x28]
jbe 0x4601eb
call fcn.004cb761
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x34], edx
mov edi, esi
mov esi, dword [ebx + 0x28]
cmp dword [ebx + 0x24], esi
jbe 0x460203
call fcn.004cb761
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x18]
test ecx, ecx
je 0x460211
cmp ecx, eax
je 0x460216
call fcn.004cb761
cmp edi, esi
je 0x4606b6
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x46025e
call fcn.004cb761
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x460236
call fcn.004cb761
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0042541f
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x460262
test al, 0x10
je 0x460262
mov ebx, 1
jmp 0x460264
mov eax, dword [eax]
jmp 0x46022c
xor ebx, ebx
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4603de
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4602fc
call fcn.004cb761
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4602a0
call fcn.004cb761
mov ecx, dword [edi]
push ecx
push ecx
mov esi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4600dd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.FilesDiff_PostScan_CollectSxsInfo_SxS_:_New_product_assembly_detected:___s_
mov dword [ebp - 4], 3
test ecx, 0xffff0000
jne 0x460300
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c463d
test eax, eax
je 0x46031a
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x46031a
mov eax, dword [eax]
jmp 0x460296
push str.FilesDiff_PostScan_CollectSxsInfo_SxS_:_New_product_assembly_detected:___s_
call fcn.004cb5ea
add esp, 4
push eax
push str.FilesDiff_PostScan_CollectSxsInfo_SxS_:_New_product_assembly_detected:___s_
mov ecx, esi
call fcn.004253ae
push ecx
mov dword [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x24], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4600dd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
jne 0x460373
mov ecx, str.General
movzx ebx, cx
push ebx
call fcn.004c463d
test eax, eax
je 0x46038d
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x46038d
push str.General
call fcn.004cb5ea
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 4
push 1
mov dword [ebp - 4], 0xffffffff
call fcn.0047d3f0
mov eax, dword [ebp - 0x34]
add esp, 0x10
push 0
test eax, eax
jne 0x460401
call fcn.004cb761
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4603bc
call fcn.004cb761
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.0042541f
mov edx, dword [ebp + 8]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.004701c0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x460405
call fcn.004cb761
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4603f6
call fcn.004cb761
mov ebx, dword [ebp + 0xc]
add edi, 4
jmp 0x4601f6
mov eax, dword [eax]
jmp 0x4603b2
mov eax, dword [eax]
jmp 0x4603ec
mov ecx, dword [0x5431c8]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push edi
xor ebx, ebx
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x5431c0]
push ebx
push ebx
lea edx, [ebp - 0x10]
push edx
push esi
push ebx
push ebx
push ecx
push ebx
push eax
push esi
push 0x5431b8
mov dword [ebp - 0x10], ebx
call fcn.004991b0
xor edx, edx
add esp, 0x2c
cmp dword [ebp - 0x10], edx
mov ebx, eax
mov eax, dword [0x5431c8]
setne dl
push eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x460469
test ebx, ebx
jne 0x460470
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x543058
push ecx
call fcn.0042c62b
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 6
mov eax, dword [ebx]
push 0
push ecx
sub eax, 0x10
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov dword [ebp - 4], edi
call fcn.0047bc80
add esp, 0x20
test eax, eax
jne 0x4607c9
push 0x505f18
lea edx, [ebp - 0x1c]
push ebx
push edx
call fcn.00424a39
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
add esp, 0xc
push 0
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 0x28], esi
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x460505
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x4606b6
mov edi, dword [ebp - 0x14]
lea ebx, [edi + 0x2c]
cmp word [ebx], 0x2e
jne 0x460530
movzx eax, word [edi + 0x2e]
cmp ax, 0x2e
je 0x46069f
test ax, ax
je 0x46069f
push 0x5f
push ebx
call fcn.004cc4e8
add esp, 8
test eax, eax
je 0x46069f
push 0x2e
push ebx
call fcn.004cc4e8
add esp, 8
test eax, eax
je 0x46069f
test byte [edi], 0x10
je 0x46069f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x46057e
push eax
push 0x5431b8
mov eax, ebx
call fcn.00499530
add esp, 8
test eax, eax
jne 0x46069f
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x4fe58c
call fcn.004247ea
push ecx
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x2c], esp
push ebx
call fcn.004247ea
push ecx
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 8
mov eax, dword [ecx]
sub eax, 0x10
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00477ad0
add esp, 0xc
mov dword [ebp - 4], 9
mov edx, dword [eax]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.FilesDiff_PostScan_CollectSxsInfo_SxS_:_New_product_assembly_detected:___s_
call fcn.004247ea
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.General
call fcn.004247ea
push 1
mov byte [ebp - 4], 9
call fcn.0047d3f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push ecx
mov dword [ebp - 0x30], esp
mov edi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x4fe58c
call fcn.004247ea
push ecx
mov dword [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push ebx
call fcn.004247ea
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
push ecx
mov dword [ebp - 0x24], esp
sub eax, 0x10
mov dword [ebp - 0x24], esp
push eax
call fcn.0042541f
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.00477ad0
add esp, 0xc
push esi
call fcn.004701c0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460513
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
mov esi, esp
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x2c], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4606d9
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.FilesDiff_PostScan_CollectSxsInfo:_Done
mov dword [ebp - 4], 0xd
test ecx, 0xffff0000
jne 0x460715
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c463d
test eax, eax
je 0x46072f
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x46072f
push str.FilesDiff_PostScan_CollectSxsInfo:_Done
call fcn.004cb5ea
add esp, 4
push eax
push str.FilesDiff_PostScan_CollectSxsInfo:_Done
mov ecx, esi
call fcn.004253ae
push ecx
mov dword [ebp - 4], 0xe
mov esi, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x2c], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x460759
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xf
jne 0x46078e
mov ecx, str.General
movzx ebx, cx
push ebx
call fcn.004c463d
test eax, eax
je 0x4607a8
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x4607a8
push str.General
call fcn.004cb5ea
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 0xe
push 1
mov dword [ebp - 4], 0xffffffff
call fcn.0047d3f0
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call fcn.004cb867
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret