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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000eb76
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10016034]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov eax, dword [edi + 0x18c0]
sub eax, dword [edi + 0x18bc]
xor esi, esi
sar eax, 2
test eax, eax
je 0x10006202
mov ebx, dword [sym.imp.MSVCR110.dll__wcsicmp]
jmp 0x100061c0
mov eax, dword [edi + 0x18bc]
mov ecx, dword [edi + 0x430]
lea edx, [eax + esi*4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x100062f5
push ecx
push dword [edx]
call ebx
add esp, 8
test eax, eax
je 0x100062e6
mov eax, dword [edi + 0x18c0]
sub eax, dword [edi + 0x18bc]
inc esi
sar eax, 2
cmp esi, eax
jb 0x100061c0
cmp dword [edi + 0x18c8], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x100062bc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
push dword [edi + 0x430]
lea eax, [ebp - 0x21c]
push eax
call ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x21c]
push eax
push str.CBoomerangClient::CheckFinalOutputFilePath___szSlientAppOutputFolder___s
call fcn.1000b290
add esp, 8
lea eax, [ebp - 0x21c]
push str.Delivered.ini
push eax
call ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100062bc
lea eax, [ebp - 0x21c]
push eax
push str.CBoomerangClient::DeleteDeliveredRecord__SILENT_INI_Path___s
call fcn.1000b290
add esp, 8
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
test eax, eax
je 0x100062ff
push eax
jmp 0x10006305
mov dword [edi + 0x18c8], 1
jmp 0x10006202
push 0x80004005
call fcn.10001230
push dword [edi + 0x430]
lea eax, [ebp - 0x220]
push 0x100118a0
push eax
call fcn.1000a6a0
mov esi, dword [ebp - 0x220]
add esp, 0xc
cmp dword [esi - 0xc], 0
jg 0x1000632a
or eax, 0xffffffff
jmp 0x10006343
push 0x2e
push esi
call dword [sym.imp.MSVCR110.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000633f
or eax, 0xffffffff
jmp 0x10006343
sub eax, esi
sar eax, 1
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x220]
call fcn.10009350
mov byte [ebp - 4], 1
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ecx
cmp eax, ecx
je 0x100063d6
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x100063c1
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x100063c1
mov ecx, dword [ebp - 0x224]
call fcn.10009a80
mov dword [ebp - 0x224], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100063b6
mov esi, dword [ebp - 0x228]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
jmp 0x100063d6
push dword [edx - 0xc]
lea ecx, [ebp - 0x220]
push edx
call fcn.100099b0
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100063f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
add edi, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
push str.Final_m_szOutputPath___s
call fcn.1000b290
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000642b
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
call fcn.10003f30
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10006449
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1000d9da
mov esp, ebp
pop ebp
ret 4