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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
cmp ebx, 2
je 0x45709e
test byte [esi + 0x98], 1
jne 0x45709e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4570a8
mov eax, dword [edi]
jmp 0x4570aa
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
setne byte [ebp - 0x21d]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
sub ebx, 0
je 0x457162
sub ebx, 1
je 0x457104
sub ebx, 1
jne 0x457404
cmp dword [edi + 0x14], 8
jb 0x457100
mov ecx, dword [edi]
jmp 0x457164
mov ecx, edi
jmp 0x457164
cmp dword [edi + 0x14], 8
jb 0x45710e
mov ecx, dword [edi]
jmp 0x457110
mov ecx, edi
lea eax, [ebp - 0x228]
push eax
lea edx, [ebp - 0x22c]
call fcn.00456d90
add esp, 4
cmp dword [ebp - 0x228], 0
je 0x457179
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x457148
mov dword [ebp - 0x21c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x457162
mov dword [ebp - 0x218], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor ecx, ecx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x218]
call fcn.00456d90
add esp, 4
cmp dword [ebp - 0x21c], 0
je 0x457404
test byte [esi + 0x98], 1
je 0x4571b0
cmp dword [esi + 0x14], 8
jb 0x457199
mov edx, dword [esi]
jmp 0x45719b
mov edx, esi
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x457404
test byte [esi + 0x98], 2
je 0x4571d9
cmp dword [esi + 0x2c], 8
lea edx, [esi + 0x18]
jb 0x4571c4
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 0x457404
test byte [esi + 0x98], 4
je 0x457203
cmp dword [esi + 0x44], 8
lea edx, [esi + 0x30]
jb 0x4571ed
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 0x457251
jmp 0x457404
cmp dword [ebp - 0x228], 0
je 0x457251
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004cda10
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 0x457251
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test byte [esi + 0x98], 8
je 0x45727a
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x457265
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 0x457404
test byte [esi + 0x98], 0x10
je 0x4572a6
cmp dword [esi + 0x74], 8
lea edx, [esi + 0x60]
jb 0x45728e
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push dword [esi + 0x78]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x457404
mov ebx, dword [esi + 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 0x4572ce
test bl, bl
je 0x457365
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x224]
push edx
mov dword [ebp - 0x224], 0
push 0x504414
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x4573ea
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x457404
cmp byte [ebp - 0x230], 0
je 0x45732f
cmp dword [esi + 0x90], 8
lea edx, [esi + 0x7c]
jb 0x45731c
mov edx, dword [edx]
call fcn.00450cc0
test al, al
je 0x4573ea
mov ecx, dword [ebp - 0x224]
test bl, bl
je 0x457351
movzx eax, byte [esi + 0x94]
push eax
call fcn.00450c50
add esp, 4
test al, al
je 0x4573ea
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x457365
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x228]
call fcn.00457b80
lea ecx, [ebp - 0x22c]
call fcn.00457b80
cmp dword [edi + 0x14], 8
jb 0x457385
mov edx, dword [edi]
jmp 0x457387
mov edx, edi
mov eax, dword [ebp - 0x21c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.00457b80
lea ecx, [ebp - 0x218]
call fcn.00457b80
test esi, esi
setns bl
test bl, bl
je 0x457406
cmp byte [ebp - 0x21d], 0
je 0x4573d3
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x457406
cmp dword [edi + 0x14], 8
jb 0x4573db
mov edi, dword [edi]
push 0
push edi
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x457406
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x457404
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor bl, bl
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x457420
mov dword [ebp - 0x21c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x45743a
mov dword [ebp - 0x218], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x457454
mov dword [ebp - 0x228], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x22c]
test edx, edx
je 0x45746e
mov dword [ebp - 0x22c], 0
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret