Function at 0x429990
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fbc5
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x285], 1
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429cc6
test al, 0x10
jne 0x429cc6
lea eax, [ebp + 8]
call fcn.00402639
push ebx
push 1
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x429a30
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x294], ebx
jne 0x429c47
cmp dword [ebp - 0x290], ebx
jne 0x429c47
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x230]
push str.Try_delete_file
push edx
call fcn.0040c240
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00402639
mov ecx, dword [edi + 0x8d28]
push eax
push str.INFO
call fcn.00417c10
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.004025ff
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push str.icacls__
push ecx
call fcn.0040c240
add esp, 0xc
mov ecx, eax
mov eax, str.___reset
lea esi, [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.0040c220
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.004025ff
push 0x414
call fcn.00453347
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x429af2
lea eax, [ebp - 0x24c]
call fcn.00402639
mov edx, eax
call fcn.00415690
mov dword [ebp - 0x298], eax
jmp 0x429af8
mov dword [ebp - 0x298], ebx
mov ecx, dword [edi + 0x8d30]
mov edx, dword [ecx]
mov edx, dword [edx]
push 0x100
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x298]
push eax
call edx
push 0x414
call fcn.00453347
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x429b43
lea eax, [ebp + 8]
call fcn.00402639
mov edx, eax
mov eax, esi
call fcn.0040193b
mov dword [ebp - 0x290], eax
jmp 0x429b49
mov dword [ebp - 0x290], ebx
mov ecx, dword [edi + 0x8d30]
mov eax, dword [ecx]
mov eax, dword [eax]
push 0x100
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp - 0x290]
push edx
call eax
mov ecx, 0x47ad8c
lea eax, [ebp - 0x214]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429b99
cmp dx, bx
je 0x429b95
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429b99
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x429b73
xor eax, eax
jmp 0x429b9e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x429c21
lea eax, [ebp + 8]
call fcn.00402639
mov edi, eax
lea esi, [ebp - 0x230]
call fcn.004086d0
mov ecx, esi
push ecx
lea edx, [ebp - 0x268]
push 0x47cfa0
push edx
mov byte [ebp - 4], 5
call fcn.0040c240
add esp, 0xc
mov ecx, eax
mov eax, 0x47cf74
lea esi, [ebp - 0x284]
mov byte [ebp - 4], 6
call fcn.0040c220
lea ecx, [ebp - 0x268]
call fcn.004025ff
push 0x10
push 0x47d018
mov eax, esi
call fcn.00402639
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
mov byte [ebp - 0x285], bl
call fcn.004025ff
lea ecx, [ebp - 0x230]
call fcn.004025ff
mov eax, dword [ebp - 0x298]
push eax
call fcn.004532eb
mov ecx, dword [ebp - 0x290]
add esp, 4
push ecx
call fcn.004532eb
add esp, 4
lea ecx, [ebp - 0x24c]
jmp 0x429cc1
lea eax, [ebp + 8]
mov byte [ebp - 0x285], bl
call fcn.00402639
mov edi, eax
lea esi, [ebp - 0x230]
call fcn.004086d0
mov edx, esi
push edx
lea eax, [ebp - 0x268]
push 0x47d028
push eax
mov byte [ebp - 4], 7
call fcn.0040c240
add esp, 0xc
mov ecx, eax
mov eax, 0x47cf74
lea esi, [ebp - 0x24c]
mov byte [ebp - 4], 8
call fcn.0040c220
lea ecx, [ebp - 0x268]
call fcn.004025ff
push 0x10
push 0x47d018
mov eax, esi
call fcn.00402639
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
call fcn.004025ff
lea ecx, [ebp - 0x230]
call fcn.004025ff
lea ecx, [ebp + 8]
call fcn.004025ff
cmp byte [ebp - 0x285], bl
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452dc2
mov esp, ebp
pop ebp
ret 0x1c