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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567ca0
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str.SignRecord.xml
lea ecx, [ebp - 0x40]
call fcn.00411c40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.0044d7e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0xd8]
call fcn.0046fe60
test al, al
je 0x4a9acc
push ecx
mov eax, esp
lea ecx, [ebp - 0xd8]
mov dword [eax], str.SignData
call fcn.004708b0
test al, al
je 0x4a9acc
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4a98f0
cmp dword [ebp - 0x94], 1
jne 0x4a98f0
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0
setne al
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x94], eax
push ecx
mov eax, esp
lea ecx, [ebp - 0xd8]
mov dword [eax], str.DevList
call fcn.004708b0
test al, al
je 0x4a9ac1
lea ecx, [ebp - 0xd8]
call fcn.004713e0
push 1
lea ecx, [ebp - 0xd8]
call fcn.00471140
test eax, eax
je 0x4a9ab6
nop dword [eax]
push 0x20
call fcn.005120b2
mov edi, eax
add esp, 4
mov dword [ebp - 0xe4], edi
mov byte [ebp - 4], 2
lea esi, [edi + 8]
mov dword [ebp - 0xe8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [ebp - 4], 4
mov ecx, esi
push eax
push 0x5d6a28
mov dword [edi + 4], eax
mov dword [edi], eax
call fcn.00404d30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xdc], edi
call fcn.004a7ae0
mov byte [ebp - 4], 5
cmp esi, eax
je 0x4a99a5
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004048d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4a99be
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x44], 7
push ecx
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0xd8]
mov eax, esp
mov dword [ebp - 0x48], 0
mov dword [eax], str.Devtype
lea eax, [ebp - 0x70]
push eax
call fcn.00474880
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x4a9a25
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4a9a3e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x60], 0
call fcn.005351ca
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0xdc]
push eax
call fcn.004a9bb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a9a8d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
push 1
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00471140
test eax, eax
jne 0x4a9930
lea ecx, [ebp - 0xd8]
call fcn.00471420
lea ecx, [ebp - 0xd8]
call fcn.00471420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.0044d5a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a9b4a
mov eax, dword [0x618d28]
test eax, eax
jne 0x4a9b1e
push 0x70
call fcn.005120b2
add esp, 4
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00409ee0
mov byte [ebp - 4], 0
mov dword [0x618d28], eax
push str.Find_SignRecord.xml_file_r_n
push 0xb9
push str.RebootSignData.cpp
push 8
push eax
call fcn.0040a3e0
add esp, 0x14
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x61e224]
sub eax, dword [0x61e220]
sar eax, 2
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a9b79
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov al, bl
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret