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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x230], 0
push esi
mov esi, ecx
push edi
mov edi, edx
cmp ebx, 2
je 0x46ac38
test byte [edi + 0x98], 1
jne 0x46ac38
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x46ac42
mov eax, dword [esi]
jmp 0x46ac44
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], 0
setne byte [ebp - 0x21d]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
sub ebx, 0
je 0x46acc4
dec ebx
je 0x46ac9a
dec ebx
jne 0x46ad58
cmp dword [esi + 0x14], 8
jb 0x46ac96
mov ecx, dword [esi]
jmp 0x46acc6
mov ecx, esi
jmp 0x46acc6
cmp dword [esi + 0x14], 8
jb 0x46aca4
mov ecx, dword [esi]
jmp 0x46aca6
mov ecx, esi
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x22c]
call fcn.0046a9d0
add esp, 4
cmp dword [ebp - 0x224], 0
je 0x46acdb
xor ecx, ecx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x218]
call fcn.0046a9d0
add esp, 4
cmp dword [ebp - 0x21c], 0
je 0x46ad58
test byte [edi + 0x98], 1
je 0x46ad0a
cmp dword [edi + 0x14], 8
jb 0x46acf7
mov edx, dword [edi]
jmp 0x46acf9
mov edx, edi
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x46ad58
test byte [edi + 0x98], 2
je 0x46ad2f
cmp dword [edi + 0x2c], 8
lea edx, [edi + 0x18]
jb 0x46ad1e
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x46ad58
test byte [edi + 0x98], 4
je 0x46adad
cmp dword [edi + 0x44], 8
lea edx, [edi + 0x30]
jb 0x46ad43
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x46ae03
xor bl, bl
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x46ad6a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x46ad7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x46ad8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x46ad9a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x224], 0
je 0x46ae03
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.005091d0
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x214]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x46ae03
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test byte [edi + 0x98], 8
je 0x46ae2c
cmp dword [edi + 0x5c], 8
lea edx, [edi + 0x48]
jb 0x46ae17
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x46ad58
test byte [edi + 0x98], 0x10
je 0x46ae58
cmp dword [edi + 0x74], 8
lea edx, [edi + 0x60]
jb 0x46ae40
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push dword [edi + 0x78]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x46ad58
mov ebx, dword [edi + 0x98]
mov eax, ebx
shr eax, 5
shr ebx, 6
and eax, 0xffffff01
and bl, 1
mov dword [ebp - 0x230], eax
test al, al
jne 0x46ae80
test bl, bl
je 0x46af17
call fcn.00464040
cmp eax, 4
jl 0x46af17
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x228], 0
push 0x550ac4
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x46af55
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x46ad58
cmp byte [ebp - 0x230], 0
je 0x46aeed
cmp dword [edi + 0x90], 8
lea edx, [edi + 0x7c]
jb 0x46aedc
mov edx, dword [edx]
mov ecx, eax
call fcn.004712a0
test al, al
je 0x46af55
mov eax, dword [ebp - 0x228]
test bl, bl
je 0x46af0d
movzx ecx, byte [edi + 0x94]
push ecx
mov ecx, eax
call fcn.00471230
add esp, 4
test al, al
je 0x46af55
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x46af17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x46af31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x224], 0
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x46af4b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x22c], 0
cmp dword [esi + 0x14], 8
jb 0x46af6e
mov edx, dword [esi]
jmp 0x46af70
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x46ad58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46ad58
mov edx, esi
mov eax, dword [ebp - 0x21c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x46af9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x46afb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x218], 0
test edi, edi
setns bl
test bl, bl
je 0x46ad5a
cmp byte [ebp - 0x21d], 0
je 0x46afe1
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x46ad5a
cmp dword [esi + 0x14], 8
jb 0x46afe9
mov esi, dword [esi]
push 0
push esi
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x46ad5a