Function at 0x4124c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41f0
call fcn.0050c2d0
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push str.ApplyDeleteList
mov dword [ebp - 0x41ec], esi
call fcn.004172c0
mov ecx, dword [esi + 0x2a4]
sub ecx, dword [esi + 0x2a0]
mov eax, 0x67b23a55
imul ecx
mov ecx, dword [edi + 0x60]
sub ecx, dword [edi + 0x5c]
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
add esi, edx
shr eax, 0x1f
add eax, esi
mov dword [edi + 0xa0], eax
mov ecx, dword [edi + 0x60]
sub ecx, dword [edi + 0x5c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor esi, esi
add ecx, edx
add esp, 4
mov dword [ebp - 0x41e8], esi
test ecx, ecx
jle 0x4127fd
mov dword [ebp - 0x41e4], esi
mov eax, dword [edi + 0x5c]
add eax, dword [ebp - 0x41e4]
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x412572
mov ebx, dword [eax]
jmp 0x412574
mov ebx, eax
test ebx, ebx
je 0x4125c7
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412580
sub eax, edx
push ebx
inc eax
push eax
lea edx, [ebp - 0x40d8]
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4125a1
sub eax, edx
dec eax
js 0x4125c0
lea ecx, [ecx]
mov cl, byte [ebx + eax]
cmp cl, 0x5c
je 0x4125d9
cmp cl, 0x2f
je 0x4125d9
dec eax
jns 0x4125b0
mov byte [ebp - 0x40d8], 0
mov eax, dword [edi + 0x5c]
add eax, dword [ebp - 0x41e4]
cmp dword [eax + 0x14], esi
jb 0x4125e3
mov edx, dword [eax]
jmp 0x4125e5
mov byte [ebp + eax - 0x40d7], 0
jmp 0x4125c7
mov edx, eax
test edx, edx
je 0x41263c
mov eax, edx
lea ebx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4125f0
sub eax, ebx
dec eax
mov ebx, eax
js 0x412618
mov edi, edi
mov cl, byte [edx + eax]
cmp cl, 0x5c
je 0x4126d8
cmp cl, 0x2f
je 0x4126d8
dec eax
jns 0x412600
mov eax, edx
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412620
sub eax, ebx
push edx
inc eax
push eax
lea edx, [ebp - 0x2070]
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov eax, dword [edi + 0x50]
sub eax, dword [edi + 0x4c]
xor ebx, ebx
test eax, 0xfffffffc
jle 0x4126a8
jmp 0x412650
mov ecx, dword [edi + 0x4c]
lea esi, [ebx*4]
mov ecx, dword [esi + ecx]
mov eax, 0x545020
call fcn.004235e0
cmp byte [ebp - 0x40d8], 0
je 0x412681
mov edx, dword [edi + 0x4c]
mov ecx, dword [esi + edx]
lea eax, [ebp - 0x40d8]
call fcn.004235e0
mov eax, dword [edi + 0x4c]
mov esi, dword [eax + esi]
lea ecx, [ebp - 0x2070]
call fcn.00423450
test al, al
jne 0x412798
mov eax, dword [edi + 0x50]
sub eax, dword [edi + 0x4c]
inc ebx
sar eax, 2
cmp ebx, eax
jl 0x412650
push 0xff
lea ecx, [ebp - 0x41df]
push 0
push ecx
mov byte [ebp - 0x41e0], 0
call sub.MSVCR100.dll_memset
mov esi, dword [ebp - 0x41e4]
add esi, dword [edi + 0x5c]
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x4126f9
mov edx, dword [esi]
jmp 0x4126fb
sub ebx, eax
push ebx
lea eax, [edx + eax + 1]
push eax
lea ecx, [ebp - 0x2070]
push ecx
call sub.MSVCR100.dll_memcpy
mov byte [ebp + ebx - 0x2070], 0
jmp 0x412639
mov edx, esi
test edx, edx
je 0x412722
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412704
sub eax, ebx
dec eax
mov ecx, eax
js 0x41271b
cmp byte [eax + edx], 0x2e
je 0x41274e
dec eax
jns 0x412712
mov byte [ebp - 0x41e0], 0
lea eax, [ebp - 0x41e0]
lea edx, [eax + 1]
jmp 0x412730
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412730
sub eax, edx
jne 0x412771
cmp dword [esi + 0x14], 0x10
jb 0x412743
mov esi, dword [esi]
push esi
call fcn.004251e0
add esp, 4
jmp 0x4127c2
mov ebx, ecx
sub ebx, eax
lea ecx, [eax + edx + 1]
push ebx
push ecx
lea edx, [ebp - 0x41e0]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x41e0], 0
jmp 0x412722
cmp dword [esi + 0x14], 0x10
jb 0x41277b
mov eax, dword [esi]
jmp 0x41277d
mov eax, esi
push eax
push str.._s
lea esi, [ebp - 0x41e0]
call fcn.00414240
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [edi + 0x9c]
mov eax, dword [edi + 0x9c]
cdq
mov dword [0x55c558], eax
mov dword [0x55c55c], edx
mov eax, dword [edi + 0xa0]
cdq
mov dword [0x55c564], edx
mov dword [0x55c560], eax
cmp dword [edi + 0x48], 0
jne 0x412812
mov ecx, dword [edi + 0x60]
sub ecx, dword [edi + 0x5c]
mov esi, dword [ebp - 0x41e8]
add dword [ebp - 0x41e4], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [ebp - 0x41e8], esi
cmp esi, eax
jl 0x41255b
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x50]
sub ecx, dword [edi + 0x4c]
xor esi, esi
test ecx, 0xfffffffc
jle 0x412861
mov edx, dword [edi + 0x4c]
mov ebx, dword [edx + esi*4]
call fcn.00422190
mov eax, dword [edi + 0x4c]
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
je 0x412853
mov eax, dword [eax]
test eax, eax
je 0x412849
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [edi + 0x4c]
mov dword [ecx + esi*4], 0
mov edx, dword [edi + 0x50]
sub edx, dword [edi + 0x4c]
inc esi
sar edx, 2
cmp esi, edx
jl 0x412822
mov ebx, dword [ebp - 0x41ec]
call fcn.00422190
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 4
pop ebx
call fcn.0050bf32
mov esp, ebp
pop ebp
ret