Function at 0x4582e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4afce3
mov eax, dword fs:[0]
push eax
sub esp, 0x9a8
mov eax, dword [0x4d1644]
xor eax, esp
mov dword [esp + 0x9a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d1644]
xor eax, esp
push eax
lea eax, [esp + 0x9bc]
mov dword fs:[0], eax
xor esi, esi
push esi
mov ebp, 7
push 0x4be620
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
call fcn.00402467
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x148]
push ecx
mov dword [esp + 0x9cc], esi
call fcn.00443930
add esp, 8
mov ebx, 8
cmp dword [esp + 0x2c], ebx
mov byte [esp + 0x9c4], 2
jb 0x45837a
mov edx, dword [esp + 0x18]
push edx
call fcn.00479e49
add esp, 4
cmp dword [esp + 0x158], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
je 0x4583e1
lea ecx, [esp + 0x10c]
push esi
push ecx
call fcn.00444030
add esp, 8
cmp dword [esp + 0x120], esi
mov byte [esp + 0x9c4], 3
jne 0x4583fb
cmp dword [esp + 0x124], ebx
jb 0x4583cb
mov edx, dword [esp + 0x110]
push edx
call fcn.00479e49
add esp, 4
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], esi
mov word [esp + 0x110], si
cmp dword [esp + 0x15c], ebx
jb 0x4586d6
mov eax, dword [esp + 0x148]
push eax
jmp 0x4586ce
cmp dword [esp + 0x124], ebx
mov eax, dword [esp + 0x110]
jae 0x458412
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x164]
call fcn.0043f730
lea ecx, [esp + 0x9b0]
xor eax, eax
push ecx
lea ecx, [esp + 0x164]
mov byte [esp + 0x9c8], 4
mov word [esp + 0x9b4], si
mov dword [esp + 0x9b6], eax
mov word [esp + 0x9ba], ax
call fcn.0043f340
movzx edi, word [esp + 0x9b4]
push 1
push 3
lea ecx, [esp + 0x8c]
call fcn.0043aae0
push 0x4b775c
push edi
lea ecx, [esp + 0x94]
mov byte [esp + 0x9cc], 5
call fcn.0043a7d0
push eax
call fcn.0043a580
add esp, 8
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x88]
call fcn.00435c30
mov edi, eax
push 0x4b775c
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x9d0], 6
call fcn.0040cbf0
push edi
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x9dc], 7
call fcn.004178b0
push str.InstallInfo.xml
push eax
lea eax, [esp + 0x148]
push eax
mov byte [esp + 0x9e8], bl
call fcn.0040cbf0
add esp, 0x24
cmp dword [esp + 0x48], ebx
jb 0x458505
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00479e49
add esp, 4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
cmp dword [esp + 0x64], ebx
jb 0x458525
mov edx, dword [esp + 0x50]
push edx
call fcn.00479e49
add esp, 4
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], esi
mov word [esp + 0x50], si
cmp dword [esp + 0x80], ebx
jb 0x458548
mov eax, dword [esp + 0x6c]
push eax
call fcn.00479e49
add esp, 4
cmp dword [esp + 0x140], ebx
mov ecx, dword [esp + 0x12c]
jb 0x4585f2
cmp ecx, esi
mov eax, ecx
je 0x458582
cmp word [eax], si
je 0x458582
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45857b
test al, 0x10
je 0x4585fe
mov ecx, dword [esp + 0x12c]
cmp dword [esp + 0x140], ebx
jb 0x458594
push ecx
call fcn.00479e49
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x140], ebp
mov dword [esp + 0x13c], esi
mov word [esp + 0x12c], si
mov byte [esp + 0x9c4], 4
call fcn.004343a0
lea ecx, [esp + 0xd8]
push ecx
mov dword [esp + 0xdc], 0x4b74dc
call fcn.00497685
add esp, 4
lea ecx, [esp + 0x160]
mov byte [esp + 0x9c4], 3
call fcn.0043f3b0
jmp 0x4583b2
lea eax, [esp + 0x12c]
jmp 0x458562
cmp dword [esp + 0x140], ebx
mov eax, dword [esp + 0x12c]
jae 0x458615
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x140], ebx
jb 0x458635
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00479e49
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x140], ebp
mov dword [esp + 0x13c], esi
mov word [esp + 0x12c], si
mov byte [esp + 0x9c4], 4
call fcn.004343a0
lea edx, [esp + 0xd8]
push edx
mov dword [esp + 0xdc], 0x4b74dc
call fcn.00497685
add esp, 4
lea ecx, [esp + 0x160]
mov byte [esp + 0x9c4], 3
call fcn.0043f3b0
cmp dword [esp + 0x124], ebx
jb 0x4586a7
mov eax, dword [esp + 0x110]
push eax
call fcn.00479e49
add esp, 4
cmp dword [esp + 0x15c], ebx
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], esi
mov word [esp + 0x110], si
jb 0x4586d6
mov ecx, dword [esp + 0x148]
push ecx
call fcn.00479e49
add esp, 4
mov ecx, dword [esp + 0x9bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.00479e10
add esp, 0x9b4
ret