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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x524a60]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x9c]
sub eax, 0x10
push eax
call fcn.00404230
mov ebx, eax
lea esi, [ebx + 0x10]
mov dword [ebp - 0x5c], esi
mov eax, dword [edi + 4]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.00404230
add esp, 8
lea edi, [eax + 0x10]
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 1
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x410b4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x38]
push edi
push esi
push str._s_s._s
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x38]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4108b0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4108b0
mov eax, dword [ebp - 0x34]
push 0
mov esi, dword [eax]
call fcn.004b8119
push esi
push eax
push edi
lea eax, [ebx + 0x10]
mov dword [ebp - 0x50], edx
push eax
lea eax, [ebp - 0x38]
push str._s_s__d._s
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x38]
add esp, 0x1c
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x410b56
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0x4e8ad8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004040f0
test al, al
jne 0x4108ee
push 0
push 0x4e8ad8
lea ecx, [ebp - 0x34]
call fcn.00404e90
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x410b60
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x3c]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410932
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
movzx eax, word [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0042faa0
add esp, 0x10
test eax, eax
jne 0x4109f1
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x410b65
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x30]
add eax, 0x10
mov dword [ecx], eax
push 0x4e8ad8
mov byte [ebp - 4], 5
call fcn.004040f0
test al, al
jne 0x410994
mov ecx, dword [ebp - 0x30]
push 0
push 0x4e8ad8
call fcn.00404e90
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4109b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4109cd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x410b2d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x410b2d
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004061e0
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push dword [ebp - 0x4c]
push eax
call fcn.00430e30
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], eax
lea ecx, [ebp - 0x28]
setne byte [ebp - 0x29]
call fcn.004039d0
cmp byte [ebp - 0x29], 0
je 0x410a71
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x30]
push 0x4e8ad8
call fcn.00403650
lea edx, [esi - 0x10]
jmp 0x410adc
push 0x4e8ad8
lea ecx, [ebp - 0x3c]
call fcn.00403650
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 7
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x410b6f
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x50]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ac2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x40], eax
call fcn.00404230
mov ecx, dword [ebp - 0x30]
add esp, 4
mov edx, dword [ebp - 0x40]
add eax, 0x10
mov dword [ecx], eax
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410af7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410b12
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x410b2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
call fcn.0044386f
push 0x80004005
call fcn.00403f90
call fcn.0044386f
int3