Function at 0x1008ea20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10195390
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101fe070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1008ea74
mov eax, dword [eax]
test eax, eax
je 0x1008ea74
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
test edi, edi
je 0x1008ee61
mov ecx, dword [0x10204418]
test ecx, ecx
je 0x1008ee61
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1008ee61
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
xor esi, esi
movq qword [ebp - 0x30], xmm0
xor ebx, ebx
mov dword [ebp - 0x30], esi
xor edx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
imul eax, dword [edi + 0xc]
mov dword [ebp - 0x48], ecx
shl eax, 2
mov dword [ebp - 0x4c], eax
cmp dword [edi + 0x10], ecx
jg 0x1008eb73
mov edi, dword [ebp - 0x40]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x34]
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008eb2f
mov eax, dword [eax]
test eax, eax
je 0x1008eb2f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
mov edi, dword [edi + 0x18]
cmp edi, eax
je 0x1008ecb5
mov ecx, dword [edi]
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x40]
mov edi, dword [ecx + 0x18]
jmp 0x1008ecb8
mov edx, dword [ebp - 0x44]
mov eax, dword [edi + 4]
movzx eax, word [eax + ecx*2]
lea eax, [eax + eax*4]
add eax, eax
mov dword [ebp - 0x50], eax
cmp edx, ebx
je 0x1008eb90
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x2c], ebx
jmp 0x1008eba6
lea eax, [ebp - 0x50]
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.1000bb50
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ecx]
call dword [eax + 0x14]
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.1008daf0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x1008ec7f
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x14]
mov eax, dword [edi]
push dword [ecx + 0xc]
push dword [ecx + 8]
mov eax, dword [eax + 0x14]
mov ecx, edi
call eax
test al, al
je 0x1008ec7f
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x18], eax
je 0x1008ec27
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x1008ec1c
lock inc dword [esi + 4]
mov dword [eax], edi
mov dword [eax + 4], esi
add dword [ebp - 0x1c], 8
jmp 0x1008ec34
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1008efa0
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x1008ec64
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1008ec64
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1008ec64
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, dword [edi + 0x10]
jl 0x1008eb70
mov esi, dword [ebp - 0x30]
jmp 0x1008eb07
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x1008ecab
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1008ecab
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1008ecab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
xor bl, bl
jmp 0x1008eda9
mov ecx, dword [ebp - 0x40]
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 3
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1008ece2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x24]
mov dword [edi + 0x1c], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x22c], 0
lea ecx, [edi + 0x22c]
je 0x1008ecf6
call fcn.10091860
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x18]
call fcn.10090660
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1008ed20
mov eax, dword [eax]
test eax, eax
je 0x1008ed19
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], 0
mov edi, dword [edx + 4]
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1008ed44
mov eax, dword [edi]
test eax, eax
je 0x1008ed44
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 5
mov eax, dword [edx + 0x18]
lea edx, [ebp - 0x30]
lea ecx, [eax + 0xc]
cmp ecx, edx
mov edx, dword [ebp - 0x40]
je 0x1008ed7e
mov eax, dword [ecx]
mov dword [ecx], esi
mov esi, eax
mov dword [ebp - 0x30], esi
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [ecx + 8], ebx
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
je 0x1008ed8b
mov eax, dword [ecx]
mov dword [edx + 0xc], eax
mov byte [ebp - 4], 2
test edi, edi
je 0x1008eda7
mov eax, dword [edi]
test eax, eax
je 0x1008eda0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], 0
mov bl, 1
mov byte [ebp - 4], 1
test esi, esi
je 0x1008edfd
mov eax, dword [ebp - 0x44]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x1008edde
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008eea5
push ecx
push esi
call fcn.1015c4d3
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1008ee63
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.1008d9f0
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008ee40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008eeaa
push edx
push ecx
call fcn.1015c4d3
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x1008ee63
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1008ee85
mov eax, dword [eax]
test eax, eax
je 0x1008ee7e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x34], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c023
mov esp, ebp
pop ebp
ret 4
call fcn.101616ac
call fcn.101616ac
int3