Function at 0x41016b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebx + 0xc]
call fcn.00405f72
mov eax, dword [ebx]
mov edi, dword [eax + 8]
xor esi, esi
test edi, edi
jle 0x4101bb
push esi
mov eax, ebx
call fcn.0040fef0
cmp eax, 2
jne 0x4101b6
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov eax, esi
call fcn.004192e6
lea ecx, [eax + 0x24]
push ecx
push 4
push esi
push dword [eax + 0x20]
add eax, 0xc
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.00405ee3
inc esi
cmp esi, edi
jl 0x410186
mov eax, dword [0x429570]
mov ecx, 0x429570
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 8], 0
mov dword [ebp - 0xc], eax
je 0x4101f5
push 0xc7
lea ecx, [ebp - 8]
call fcn.00401000
pop ecx
lea edi, [ebp - 0xc]
call fcn.0040158b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
and dword [ebp - 8], 0
lea esi, [ebx + 0x10]
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebp - 0x18], eax
jle 0x410394
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0042033a
mov ecx, dword [ebp + 8]
test ecx, ecx
mov edi, eax
je 0x41028c
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x410394
mov eax, dword [0x429570]
mov ecx, 0x429570
call dword [eax + 0xc]
mov ecx, dword [ebx]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x10]
add ecx, 4
call fcn.004192e6
mov esi, eax
call fcn.00403840
push eax
lea esi, [ebp - 0xc]
call fcn.00403840
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040382d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea esi, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.00403840
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
call dword [eax + 0xc]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
push dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00405f7f
mov eax, dword [ebp - 8]
lea esi, [ebx + 0x10]
mov ecx, esi
call fcn.0042033a
cmp dword [eax + 0xc], 0
jne 0x41036f
mov eax, dword [ebx + 0xc]
sub eax, 0x10
call fcn.00401773
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040c50c
mov eax, dword [edi + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401cb8
lea eax, [ebp - 4]
call fcn.0040c50c
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.00406048
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401cb8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [edi + 4], 0
je 0x41031c
lea eax, [ebp - 4]
call fcn.00404bc8
cmp dword [edi + 4], eax
jne 0x4103a9
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx]
add ecx, 4
mov eax, edi
call fcn.004192e6
add eax, 0x1c
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x410347
push 0
push eax
lea edx, [ebp - 4]
call fcn.00404f1d
test al, al
pop ecx
pop ecx
je 0x4103a9
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0042033a
mov ecx, dword [ebx]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.004192e6
mov byte [eax + 0x5c], 1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x410385
mov eax, dword [ebp - 8]
push 0
mov ecx, esi
call fcn.0042033a
push dword [eax + 0x10]
mov ecx, dword [ebx]
call fcn.00418af0
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x41020a
xor esi, esi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
pop edi
mov eax, esi
pop esi
leave
ret 4
lea esi, [ebp - 4]
call fcn.00403840
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 4]
push 0x5c
mov eax, edi
call fcn.004015e9
test eax, eax
pop ecx
jne 0x4103ce
or edx, 0xffffffff
jmp 0x4103d2
sub eax, edi
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.0040abd2
push eax
lea eax, [ebp + 8]
push eax
mov eax, edx
lea esi, [ebp - 4]
call fcn.004014a5
push eax
call fcn.0040caa5
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [edi - 0x10]
call fcn.0040175b
push 5
pop esi
jmp 0x410396