Function at 0x401060
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push str.__________________1_____________________
call esi
call section..text
test eax, eax
jne 0x401094
push str.__________________2_____________________
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [section..share], 0
je 0x4010b7
push str.__________________3_____________________
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4010d0
push str.__________________4_____________________
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00402570
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x4010f2
push str.__________________5_____________________
call esi
jmp 0x40131c
push edi
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov edi, 0x428ef8
call fcn.00402530
mov edx, dword [0x428ef8]
push edx
call esi
inc dword [section..share]
lea esi, [esp + 0x24]
call fcn.00401350
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00401410
lea esi, [esp + 0x10]
call fcn.00402060
mov edx, dword [0x4282cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4282cc
call eax
mov edi, eax
add edi, 0x10
xor ebx, ebx
mov dword [esp + 0x18], edi
cmp dword [esp + 0x40], ebx
jbe 0x401254
push ebx
lea eax, [esp + 0x28]
call fcn.00401390
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401790
mov ecx, dword [esp + 0x10]
mov esi, eax
add esi, 0x10
push ecx
mov ecx, esi
call fcn.00406aa0
mov eax, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x44]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4011b8
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, ecx
or edx, eax
je 0x4011b8
test eax, eax
jl 0x4011dd
jg 0x4011b8
cmp ecx, 0xfa000
jbe 0x4011dd
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4011d4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
inc ebx
cmp ebx, dword [esp + 0x40]
jb 0x40115e
jmp 0x401254
lea ebx, [esi - 0x10]
lea eax, [edi - 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
cmp ebx, eax
je 0x40123b
cmp dword [eax + 0xc], 0
lea edi, [eax + 0xc]
jl 0x401226
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x401226
mov eax, ebx
call fcn.00401790
mov esi, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x401221
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esi + 0x10]
jmp 0x40123b
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x1c]
call fcn.00402490
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401254
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.__________________11_____________________
call esi
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012b2
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x20]
call fcn.00401fe0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4012a5
mov eax, dword [esp + 0x10]
call fcn.004036b0
push str.__________________6_____________________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.0040d48f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec dword [section..share]
push str.__________________7_____________________
call esi
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012e6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401306
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.00401690
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040d20c
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40133c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10