Function at 0x4e1030
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x579ca8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.004125d0
mov eax, ebx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.update_rebootconfig2.dat
mov dword [esp + 0x28], edi
call fcn.0041a8a0
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCR80.dll__waccess]
push edi
push eax
call esi
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e10ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4e1140
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.update_rebootconfig2.dat
call fcn.0041a8a0
mov eax, dword [eax]
add esp, 8
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e10f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.update_reboot_update_
call fcn.0041a8a0
mov byte [esp + 0x28], 1
mov eax, dword [eax]
push 1
push eax
call fcn.00412bc0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.update_rebootconfig.dat
call fcn.0041a8a0
mov eax, dword [eax]
push 0
push eax
call esi
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4e1212
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.update_rebootconfig.dat
call fcn.0041a8a0
mov eax, dword [eax]
add esp, 8
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e11c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.update_reboot_update_
call fcn.0041a8a0
mov byte [esp + 0x28], 2
mov eax, dword [eax]
push 1
push eax
call fcn.00412bc0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e123a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret