Function at 0x108b070
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1138
call fcn.01039d80
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1138], 0
push ebx
push esi
push edi
xor eax, eax
push 0x112e
push eax
mov word [ebp - 0x1134], ax
lea eax, [ebp - 0x1132]
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x1012400
lea ebx, [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [esi + 0x14], eax
jle 0x108b0e4
lea ecx, [esi + 0x10]
cmp dword [ecx + 4], eax
push eax
jle 0x108b2d7
mov edx, dword [ecx]
mov edx, dword [edx]
mov dword [esi + 0x28], edx
call fcn.0108842a
jmp 0x108b0e7
mov dword [esi + 0x28], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x108b2e5
push dword [eax]
mov ecx, esi
call fcn.01087507
test eax, eax
jl 0x108b28b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x108b28b
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
test bl, 8
je 0x108b155
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b145
test byte [eax + 0x1c], 4
je 0x108b145
mov ecx, dword [esi + 0x28]
push dword [ecx]
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b9c
mov eax, dword [esi + 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x108b2cb
cmp dword [esi + 0x280], 0
je 0x108b1ac
push 0x898
lea eax, [ebp - 0x1134]
push eax
push ecx
call fcn.0108d1bf
test eax, eax
jne 0x108b1ac
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b1a0
test byte [eax + 0x1c], 4
je 0x108b1a0
lea ecx, [ebp - 0x1134]
push ecx
mov ecx, dword [esi + 0x28]
push dword [ecx]
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015c09
lea eax, [ebp - 0x1134]
push eax
jmp 0x108b258
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 8]
test bl, 4
je 0x108b1f9
test edx, edx
je 0x108b1d5
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b220
test byte [eax + 0x1c], 4
je 0x108b220
push edx
push dword [ecx]
push edi
push 0x2b
jmp 0x108b215
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b2cb
test byte [eax + 0x1c], 1
je 0x108b2cb
push dword [ecx]
push edi
push 0x2c
jmp 0x108b27e
test edx, edx
je 0x108b228
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b220
test byte [eax + 0x1c], 4
je 0x108b220
push edx
push dword [ecx]
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015c09
mov eax, dword [esi + 0x28]
push dword [eax + 8]
jmp 0x108b258
mov edx, dword [ecx + 4]
test edx, edx
je 0x108b267
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b252
test byte [eax + 0x1c], 4
je 0x108b252
push edx
push dword [ecx]
push edi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015c09
mov eax, dword [esi + 0x28]
push dword [eax + 4]
mov ecx, esi
call fcn.0108a4dc
mov dword [ebp - 0x1138], eax
jmp 0x108b2c2
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b2cb
test byte [eax + 0x1c], 1
je 0x108b2cb
push dword [ecx]
push edi
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b9c
jmp 0x108b2c2
cmp eax, 0x8007000b
jne 0x108b2cb
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108b2b7
test byte [eax + 0x1c], 4
je 0x108b2b7
mov ecx, dword [esi + 0x28]
push dword [ecx]
push edi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b9c
mov eax, dword [esi + 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1138], 0
jne 0x108b2e5
mov ecx, esi
call fcn.010898c6
jmp 0x108b0b8
push eax
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1138]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret