Function at 0x4075e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x433108
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x43fc34]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [edi + 0x58]
sub eax, dword [edi + 0x54]
xor ebp, ebp
sar eax, 2
mov dword [esp + 0x18], ebp
test eax, eax
jbe 0x407a79
mov ecx, dword [edi + 0x58]
sub ecx, dword [edi + 0x54]
sar ecx, 2
cmp ebp, ecx
jb 0x40762f
call fcn.0041e033
mov edx, dword [edi + 0x54]
mov esi, dword [edx + ebp*4]
mov ecx, dword [esi - 0x10]
lea eax, [edx + ebp*4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40765f
cmp eax, dword [esi]
jne 0x40765f
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x407693
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x407a8c
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [esp + 0x2c], esi
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x10], esi
sar eax, 3
cmp eax, esi
jbe 0x407868
jmp 0x4076bb
mov esi, dword [esp + 0x10]
cmp esi, eax
jb 0x4076c4
call fcn.0041e033
mov eax, dword [edi + 0xc]
lea ebx, [esi*8]
mov esi, dword [eax + ebx + 4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add eax, ebx
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4076fb
cmp eax, dword [esi]
jne 0x4076fb
mov ebp, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40772f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x407a8c
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
add ebp, 0x10
mov dword [esp + 0x20], ebp
mov byte [esp + 0x2c], 1
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
sar edx, 3
cmp dword [esp + 0x10], edx
jb 0x40774f
call fcn.0041e033
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
mov ecx, dword [esi - 0x10]
add eax, ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40777e
cmp eax, dword [esi]
jne 0x40777e
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4077b2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x407a8c
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x2c], 2
mov esi, dword [esp + 0x20]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x407a91
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0041ffef
add esp, 8
test eax, eax
jne 0x407808
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
or ecx, eax
jge 0x407801
push 0
lea ecx, [esp + 0x20]
call fcn.00404e30
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40784a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x10]
inc ecx
sar eax, 3
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x4076b7
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x24]
xor esi, esi
sar ecx, 3
mov dword [esp + 0x10], esi
test ecx, ecx
jbe 0x407a3b
jmp 0x407885
mov esi, dword [esp + 0x10]
mov edx, dword [edi + 0x28]
sub edx, dword [edi + 0x24]
sar edx, 3
cmp esi, edx
jb 0x407897
call fcn.0041e033
mov eax, dword [edi + 0x24]
lea ebx, [esi*8]
mov esi, dword [eax + ebx + 4]
mov ecx, dword [esi - 0x10]
add eax, ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4078ce
cmp eax, dword [esi]
jne 0x4078ce
mov ebp, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x407902
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x407a8c
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
add ebp, 0x10
mov dword [esp + 0x20], ebp
mov byte [esp + 0x2c], 3
mov edx, dword [edi + 0x28]
sub edx, dword [edi + 0x24]
sar edx, 3
cmp dword [esp + 0x10], edx
jb 0x407922
call fcn.0041e033
mov eax, dword [edi + 0x24]
mov esi, dword [eax + ebx]
mov ecx, dword [esi - 0x10]
add eax, ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x407951
cmp eax, dword [esi]
jne 0x407951
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x407985
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x407a8c
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x2c], 4
mov esi, dword [esp + 0x20]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x407a91
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0041ffef
add esp, 8
test eax, eax
jne 0x4079db
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
or ecx, eax
jge 0x4079d4
push 0
lea ecx, [esp + 0x20]
call fcn.00404e30
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x24]
mov eax, dword [esp + 0x10]
inc eax
sar ecx, 3
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x407881
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407a63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x58]
sub ecx, dword [edi + 0x54]
inc ebp
sar ecx, 2
mov dword [esp + 0x18], ebp
cmp ebp, ecx
jb 0x40761d
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call fcn.00404f90
push 0x80004005
call fcn.00404f70
int3