Function at 0x4c5ba0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d34a
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x5c5678]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov edi, edx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x43c], ebx
mov eax, dword [edi]
mov dword [ebp - 0x440], ecx
cmp eax, ebx
je 0x4c5bf7
mov dword [edi], ebx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [0x5d33b4]
cmp eax, ebx
je 0x4c5d7a
push edi
push 0x50
call eax
cmp eax, ebx
jl 0x4c5d7a
cmp dword [edi], ebx
je 0x4c5d7a
push 0x103
lea ecx, [ebp - 0x11b]
push ebx
push ecx
mov byte [ebp - 0x11c], bl
call fcn.00545940
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
call fcn.004c66d0
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c5c50
sub eax, edx
je 0x4c5d7a
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x43c], eax
lea esi, [ebp - 0x454]
mov eax, edi
call fcn.004c8cb0
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x440]
mov eax, dword [eax]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x11c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov ecx, esi
setge byte [ebp - 0x435]
mov dword [ebp - 4], 0xffffffff
call fcn.004c95e0
cmp byte [ebp - 0x435], bl
je 0x4c5f0c
push 0x103
push ebx
cmp dword [ebp - 0x43c], ebx
je 0x4c5da1
lea ecx, [ebp - 0x433]
push ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x434], bl
call fcn.00545940
add esp, 0xc
push str.BootRecord
push str.select__from__s
lea edx, [ebp - 0x434]
push 0x104
push edx
call fcn.004d2860
mov edi, dword [ebp - 0x444]
add esp, 0x10
lea eax, [edi + 0x34]
lea esi, [ebp - 0x454]
call fcn.004c8cb0
push ebx
push ebx
lea edx, [ebp - 0x440]
push edx
lea edx, [ebp - 0x43c]
push edx
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [ebp - 0x434]
push edx
mov edx, dword [edi + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov ecx, esi
setl byte [ebp - 0x435]
mov dword [ebp - 4], 0xffffffff
call fcn.004c95e0
cmp byte [ebp - 0x435], bl
je 0x4c5d9a
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
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.0053d78d
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x4c5d7c
lea edx, [ebp - 0x223]
push edx
mov byte [ebp - 0x224], bl
call fcn.00545940
add esp, 0xc
push str.leakfixflag
push str.powerspeedflag
push str.rmflag
push str.btime
push str.newborn
push str.bootkey
push str.dkey
push str.BootRecord
push str.create_table__s__s_int___s_char___s_char___s_int___s_int___s_int___s_int__
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.004d2860
add esp, 0x2c
push 0x103
lea ecx, [ebp - 0x32b]
push ebx
push ecx
mov byte [ebp - 0x32c], bl
call fcn.00545940
add esp, 0xc
push str.description
push 0x58564c
push str.NewItems
push str.create_table__s__s_char___s_char__
lea edx, [ebp - 0x32c]
push 0x104
push edx
call fcn.004d2860
add esp, 0x18
lea esi, [ebp - 0x474]
mov eax, edi
call fcn.004c8cb0
push ebx
push ebx
mov dword [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x440]
mov edx, dword [edx]
push edx
push eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x43c], 1
call eax
test eax, eax
jl 0x4c5ebc
lea esi, [ebp - 0x464]
mov eax, edi
call fcn.004c8cb0
push ebx
push ebx
push ebx
mov ecx, 3
mov dword [ebp - 4], ecx
mov eax, dword [eax]
lea edx, [ebp - 0x32c]
push edx
mov edx, dword [ebp - 0x440]
mov edx, dword [edx]
mov dword [ebp - 0x43c], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov byte [ebp - 0x435], 1
test eax, eax
jge 0x4c5ec2
mov byte [ebp - 0x435], bl
mov dword [ebp - 4], 2
test byte [ebp - 0x43c], 2
je 0x4c5ee4
and dword [ebp - 0x43c], 0xfffffffd
lea ecx, [ebp - 0x464]
call fcn.004c95e0
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x43c], 1
je 0x4c5eff
lea ecx, [ebp - 0x474]
call fcn.004c95e0
cmp byte [ebp - 0x435], bl
je 0x4c5f0c
mov ebx, 1
mov eax, ebx
jmp 0x4c5d7c