Function at 0x415b0f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x18]
push edi
mov dword [ebp - 0x10], esi
call fcn.00409543
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415b3b
mov ecx, ebx
neg ecx
lea edx, [ebx + 4]
sbb ecx, ecx
and ecx, edx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 8]
xor esi, esi
test edi, edi
jle 0x415b7f
push esi
mov eax, ebx
call fcn.00415821
cmp eax, 2
jne 0x415b7a
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 4]
mov eax, esi
call fcn.0042144d
lea ecx, [eax + 0x2c]
push ecx
push 4
push esi
push dword [eax + 0x28]
add eax, 0xc
push eax
push dword [ebp - 0x10]
call fcn.004094b4
inc esi
cmp esi, edi
jl 0x415b4a
mov eax, dword [0x438af8]
mov esi, 0x438af8
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x1c], eax
je 0x415bbb
push 0xc7
lea ecx, [ebp - 0x2c]
call fcn.00401ff7
pop ecx
lea edi, [ebp - 0x1c]
call fcn.00401bc0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040147d
and dword [ebp - 8], 0
lea ecx, [ebx + 0x1c]
mov eax, dword [ecx + 4]
test eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], eax
jle 0x415ec2
mov edi, 0x438cbc
mov eax, dword [ebp - 8]
call fcn.0040980d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp - 0xc], eax
je 0x415c5f
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x415e87
mov eax, dword [0x438af8]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0042144d
mov esi, eax
call fcn.004044e7
push eax
lea esi, [ebp - 0x1c]
call fcn.004044e7
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004044d4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea esi, [ebp - 0x18]
mov dword [ebp - 0x30], eax
call fcn.004044e7
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040147d
mov esi, 0x438af8
cmp byte [0x438cec], 0
je 0x415cb7
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
lea ecx, [ebx + 4]
call fcn.0042144d
mov ebx, dword [eax]
mov eax, dword [0x438af8]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push ebx
push dword [0x4382b8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004063dd
push eax
call fcn.004063dd
push eax
mov ebx, edi
call fcn.00405df0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040147d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.0040955a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.0040980d
cmp dword [eax + 0xc], 0
jne 0x415dfa
cmp byte [0x438cec], 0
je 0x415d15
mov eax, dword [0x438af8]
mov ecx, esi
call dword [eax + 0xc]
push dword [0x4382bc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004063dd
push eax
mov ebx, edi
call fcn.00405df0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040147d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x14]
push ecx
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00409615
mov eax, dword [ebx + 0xc]
add esp, 0xc
call fcn.00421355
test al, al
jne 0x415d44
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00409774
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x415d61
lea eax, [ebp - 4]
call fcn.00407d9b
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], eax
jne 0x415ed8
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0042144d
add eax, 0x24
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x415d92
mov ecx, dword [ebp - 4]
push 0
push eax
call fcn.004114f0
test al, al
pop ecx
pop ecx
je 0x415ed8
cmp byte [0x438cec], 0
je 0x415dd0
mov eax, dword [0x438af8]
mov ecx, esi
call dword [eax + 0xc]
push dword [0x4382c0]
add eax, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004063dd
push eax
mov ebx, edi
call fcn.00405df0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040147d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.0040980d
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0042144d
mov byte [eax + 0x68], 1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
jmp 0x415e74
cmp byte [0x438cec], 0
je 0x415e5c
mov ebx, dword [ebx + 0x38]
push 0
push ebx
lea eax, [ebp - 0x34]
call fcn.0040901c
mov ebx, dword [eax]
mov eax, dword [0x438af8]
pop ecx
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push ebx
push dword [0x4382b0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004063dd
push eax
call fcn.004063dd
push eax
mov ebx, edi
call fcn.00405df0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.0040147d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
push 0
call fcn.0040980d
push dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
call fcn.004206ba
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x38]
jge 0x415ec2
mov ecx, dword [ebp - 0x14]
jmp 0x415bd8
cmp byte [0x438cec], 0
je 0x415ec2
mov eax, dword [0x438af8]
mov ecx, esi
call dword [eax + 0xc]
push dword [0x4382c8]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004063dd
push eax
mov ebx, edi
call fcn.00405df0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040147d
xor esi, esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040147d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
lea esi, [ebp - 4]
call fcn.004044e7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push 0x5c
call fcn.004026aa
test eax, eax
pop ecx
jne 0x415efb
or eax, 0xffffffff
jmp 0x415efe
sub eax, dword [ebp - 4]
push dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea esi, [ebp - 4]
call fcn.00402629
push eax
call fcn.00411b29
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
cmp byte [0x438cec], 0
je 0x415f5e
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
push dword [0x4382c4]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004063dd
push eax
mov ebx, edi
call fcn.00405df0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
push 5
pop esi
jmp 0x415ec4