Function at 0x10040cd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152bae
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x101a154c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [edi + 0xc]
lea eax, [edi + 0xc]
mov dword [ebp - 0x18], eax
call esi
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x10040f7d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x10040f87
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
dec eax
mov byte [ebp - 4], 1
cmp eax, 3
ja case.default.0x10040d5b
jmp dword [eax*4 + 0x10040f94]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x10
push eax
call fcn.100190c0
mov eax, dword [edi]
add eax, 0x14
jmp 0x10040d9f
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x20
push eax
call fcn.100190c0
mov eax, dword [edi]
add eax, 0x24
jmp 0x10040d9f
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x30
push eax
call fcn.100190c0
mov eax, dword [edi]
add eax, 0x40
push eax
lea ecx, [ebp - 0x10]
call fcn.100190c0
mov eax, dword [ebp - 0x14]
or esi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x10040f29
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x10040f29
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
push 0x20
mov dword [ebp + 8], eax
movlpd qword [ebp - 0x24], xmm0
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10040dfb
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x10040dfd
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.10018770
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
lea eax, [edi + 8]
push 0x7530
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10019cf0
test eax, eax
je 0x10040f03
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10040e67
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10040e67
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10040e67
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [edi + 0x10]
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x24], xmm0
call fcn.100f8c40
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x10040e9a
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x10040e9c
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.10018770
mov ecx, dword [ebp - 0x24]
push edi
push 0x7530
push dword [ebp - 0x18]
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
call fcn.10019cf0
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x10040f06
test edi, edi
je 0x10040efc
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10040efc
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10040efc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, 1
jmp 0x10040f2b
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10040f29
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10040f29
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10040f29
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor edi, edi
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040f49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10040f68
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
nop dword [eax]
bound ecx, qword [0xd771004]
add al, 16
mov word [0xd8c1004], cs
add al, 16
int3