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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53af08
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x58c758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
push str.EntClientLibWhiteReport.dat
lea eax, [ebp - 0x38]
push eax
call fcn.00401270
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00402010
movzx ecx, al
test ecx, ecx
je 0x47debd
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401eb0
mov eax, dword [ebp - 0x44]
jmp 0x47e1a6
lea ecx, [ebp - 0x38]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47dedf
lea ecx, [ebp - 0x38]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.ReportHistory
lea ecx, [ebp - 0x34]
call fcn.00401e30
mov byte [ebp - 4], 1
xor edx, edx
mov word [ebp - 0x20], dx
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x14]
push edx
movzx eax, word [ebp - 0x16]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1a]
push edx
movzx eax, word [ebp - 0x1e]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
push str._04d_02d_02d__02d:_02d:_02d
mov edx, dword [ebp - 0x64]
add edx, 4
push edx
call fcn.00409170
add esp, 0x20
lea ecx, [ebp - 0x38]
call fcn.0043e290
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 4
call fcn.0043e290
push eax
push str.LastReportTime
lea ecx, [ebp - 0x34]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x30]
call fcn.00403840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00403840
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00403840
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004494e0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 8
call fcn.0045ee00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
jmp 0x47dfce
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x40]
call fcn.0047da50
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 8
call fcn.00486210
push eax
lea ecx, [ebp - 0x40]
call fcn.00474e80
movzx edx, al
test edx, edx
je 0x47e0c3
lea ecx, [ebp - 0x40]
call fcn.0045a620
push eax
lea ecx, [ebp - 0x30]
call fcn.00401970
lea ecx, [ebp - 0x30]
call fcn.00428bb0
lea ecx, [ebp - 0x30]
call fcn.00402010
movzx eax, al
test eax, eax
jne 0x47e027
lea ecx, [ebp - 0x40]
call fcn.0045a620
cmp dword [eax + 4], 0
jne 0x47e029
jmp 0x47dfc0
lea ecx, [ebp - 0x30]
call fcn.004086e0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x10]
call fcn.004086e0
add eax, dword [ebp - 0x2c]
cmp eax, 0x1000
jle 0x47e096
mov ecx, dword [ebp - 0x28]
push ecx
push 0x548aec
lea edx, [ebp - 0x24]
push edx
call fcn.00409170
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x24]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x34]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x10]
call fcn.00401f80
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x10]
call fcn.00402010
movzx ecx, al
test ecx, ecx
jne 0x47e0b2
push 0x543620
lea ecx, [ebp - 0x10]
call fcn.00401990
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x10]
call fcn.004049a0
jmp 0x47dfc0
lea ecx, [ebp - 0x10]
call fcn.00402010
movzx eax, al
test eax, eax
jne 0x47e122
mov ecx, dword [ebp - 0x28]
push ecx
push 0x548aec
lea edx, [ebp - 0x24]
push edx
call fcn.00409170
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x24]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x34]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x10]
call fcn.00401f80
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0x542fc8
lea edx, [ebp - 0x24]
push edx
call fcn.00409170
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x24]
call fcn.0043e290
push eax
push str.Count
lea ecx, [ebp - 0x34]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00401eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401eb0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret