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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x45f538
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x480aa4]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x20c]
lea ecx, [ebp - 0x14]
xor edi, edi
push ecx
mov dword [ebp - 0x18], edi
mov ecx, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
call fcn.00407840
push 0xb
push str.Ascentive_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401f10
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4081f7
push edi
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004079f0
push 0x4676c8
lea ecx, [ebp - 0x18]
call fcn.00402730
mov ecx, dword [ebp - 0x14]
push str.APC_Parameters.txt
push ecx
lea edx, [ebp - 0x18]
push 0x467a8c
push edx
mov byte [ebp - 4], 2
call fcn.00402050
add esp, 0x10
push 0x4676c8
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00425870
push edi
push 0xffffffffffffffff
mov bl, 4
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00407d60
mov eax, dword [ebp - 0x18]
push edi
push 0x4010
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00425fb0
cmp eax, edi
je 0x408282
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00425c70
lea ecx, [ebp - 0x44]
call fcn.0043518b
lea ecx, [ebp - 0x44]
call fcn.004351b4
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 0xc], edi
je 0x40829c
push 0x4676c8
push 0x467a88
lea ecx, [ebp - 0x1c]
call fcn.004074d0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.004015f0
mov esi, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x58], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004351f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408338
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40835b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40839d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0044746c
add ebp, 0x204
mov esp, ebp
pop ebp
ret 4