Function at 0x4101cd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], edi
call fcn.00406d5c
mov eax, dword [ebx]
mov edi, dword [eax + 8]
xor esi, esi
test edi, edi
jle 0x410226
push esi
mov eax, ebx
call fcn.0040ff94
cmp eax, 2
jne 0x410221
mov eax, dword [ebx]
lea ecx, [eax + 4]
mov eax, esi
call fcn.0040cb4d
lea ecx, [eax + 0x24]
push ecx
push esi
push dword [eax + 0x20]
add eax, 0xc
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.0041aec3
inc esi
cmp esi, edi
jl 0x4101f3
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x1c], eax
je 0x410264
push 0xc7
lea esi, [esp + 0x1c]
call fcn.00416ecc
pop ecx
lea edi, [esp + 0x1c]
call fcn.004060b8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
and dword [esp + 0xc], 0
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4103e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.0041e141
mov edi, dword [ebp + 0xc]
mov esi, eax
mov dword [esp + 0x20], esi
test edi, edi
je 0x41030b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test al, al
jne 0x4103e0
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
mov esi, dword [esi + 0x10]
mov ecx, dword [ebx]
add eax, 0x10
mov dword [esp + 0x18], eax
add ecx, 4
mov eax, esi
call fcn.0040cb4d
mov esi, eax
call fcn.0040642d
push eax
lea esi, [esp + 0x20]
call fcn.0040642d
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00406c06
mov edi, dword [edi]
add esp, 0xc
lea esi, [esp + 0x18]
add edi, 0xc
call fcn.0040642d
mov ecx, dword [ebp + 0xc]
push eax
call dword [edi]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004039c4
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
lea edi, [ebx + 0xc]
mov ecx, edi
call fcn.0041af41
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.0041e141
cmp dword [eax + 0xc], 0
jne 0x4103b5
lea eax, [esi + 0x14]
push eax
mov ebx, esi
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.0041b08a
xor ebx, ebx
pop ecx
cmp dword [esi + 4], ebx
je 0x41035b
lea eax, [esp + 0x10]
call fcn.00415c93
cmp dword [esi + 4], eax
jne 0x4103f9
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.0040cb4d
add eax, 0x1c
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
je 0x410386
push ebx
push eax
lea edx, [esp + 0x18]
call fcn.00416007
pop ecx
pop ecx
test al, al
je 0x4103fc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.0041e141
mov edi, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [edi + 4]
call fcn.0040cb4d
mov byte [eax + 0x5c], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004039c4
mov ebx, dword [ebp + 8]
jmp 0x4103ce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0
call fcn.0041e141
push dword [eax + 0x10]
mov ecx, dword [ebx]
call fcn.0040c537
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x24]
jl 0x41027c
xor esi, esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004039c4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
lea esi, [esp + 0x10]
call fcn.0040642d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [edi + 4]
mov eax, dword [edi + 0x40]
test al, 1
je 0x410420
shr eax, 6
test al, 1
lea eax, [edi + 0x54]
je 0x410423
lea eax, [edi + 0x58]
push eax
push 0x5c
lea esi, [esp + 0x18]
call fcn.004062ac
mov ecx, eax
lea edx, [esp + 0x28]
mov eax, esi
call fcn.004063f7
push eax
call fcn.00407677
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004039c4
push 5
pop esi
jmp 0x4103e2