Function at 0x458970
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b0959
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov dword [esp + 0x20], ecx
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.00489cd0
xor esi, esi
lea ecx, [esp + 0x14]
push esi
push esi
push esi
push str.config_sleeplist.dta
mov dword [esp + 0x154], esi
call fcn.00489d20
test al, al
jne 0x4589e5
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], 0xffffffff
call fcn.00489d10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
add esp, 0x140
ret
mov ebx, 4
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
call fcn.00489e20
cmp eax, ebx
je 0x458a2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], 0xffffffff
call fcn.00489d10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
add esp, 0x140
ret
cmp dword [esp + 0x10], 1
je 0x458a62
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], 0xffffffff
call fcn.00489d10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
add esp, 0x140
ret
push ebp
push edi
lea ecx, [esp + 0x3c]
push 0x105
push ecx
lea ecx, [esp + 0x24]
call fcn.00489e20
cmp eax, 0x105
jne 0x458ce5
lea edx, [esp + 0x38]
push ebx
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 0
call fcn.00489e20
cmp eax, ebx
jne 0x458ce5
push 0xd28
call fcn.004a2a14
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x14c], 1
je 0x458ace
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.0041ba50
mov esi, eax
jmp 0x458ad0
xor esi, esi
mov ecx, esi
mov byte [esp + 0x14c], 0
call fcn.0041d630
test al, al
je 0x458cc9
push 8
call fcn.004a2a14
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
lea esi, [ecx + 0x44]
mov dword [eax + 4], edx
add esp, 4
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x458c14
mov edx, dword [esi + 4]
test edx, edx
je 0x458b32
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x458b37
mov ecx, 1
test edx, edx
jne 0x458b3f
xor eax, eax
jmp 0x458b44
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x458b50
xor eax, eax
shl eax, 2
push eax
call fcn.004a2a14
mov ebx, dword [esi + 4]
add esp, 4
cmp ebx, edi
mov dword [esp + 0x2c], eax
mov ebp, eax
je 0x458b7d
push ebx
push ebp
call fcn.00416a60
add ebx, 4
add esp, 8
add ebp, 4
cmp ebx, edi
jne 0x458b69
lea ecx, [esp + 0x10]
push ecx
push 1
push ebp
mov ecx, esi
call fcn.00416a30
mov edx, dword [esi + 8]
add ebp, 4
push ebp
push edx
push edi
mov ecx, esi
call fcn.00491680
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00443ee0
mov edx, dword [esi + 4]
push edx
call fcn.004a2a3d
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [ecx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], edx
jne 0x458bed
xor edx, edx
mov dword [esi + 4], ecx
mov ebx, 4
lea eax, [ecx + edx*4 + 4]
mov dword [esi + 8], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x458a64
mov edx, dword [esi + 8]
mov dword [esi + 4], ecx
sub edx, eax
mov ebx, 4
sar edx, 2
lea eax, [ecx + edx*4 + 4]
mov dword [esi + 8], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x458a64
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x458c77
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00491680
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00416a30
mov eax, dword [esi + 8]
cmp edi, eax
je 0x458c5f
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, ebx
cmp edi, eax
jne 0x458c53
mov eax, dword [esi + 8]
add eax, ebx
mov dword [esi + 8], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x458a64
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.00491680
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x458c9e
sub eax, ebx
sub ecx, ebx
cmp eax, edi
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x458c92
lea eax, [edi + 4]
cmp edi, eax
je 0x458cb1
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, ebx
cmp edi, eax
jne 0x458ca5
mov eax, dword [esi + 8]
add eax, ebx
mov dword [esi + 8], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x458a64
test esi, esi
je 0x458cd5
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x458a64
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00489d10
mov ecx, dword [esp + 0x144]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret