Function at 0x101969e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1138
call fcn.010120a0
mov eax, dword [0x1035030]
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, 0x1003a20
lea ebx, [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [esi + 0x14], eax
jle 0x1019712
lea ecx, [esi + 0x10]
cmp dword [ecx + 4], eax
push eax
jle 0x1019905
mov edx, dword [ecx]
mov edx, dword [edx]
mov dword [esi + 0x28], edx
call fcn.01016a6c
jmp 0x1019715
mov dword [esi + 0x28], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1019913
push dword [eax]
mov ecx, esi
call fcn.01015b33
test eax, eax
jl 0x10198b9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10198b9
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
test bl, 8
je 0x1019783
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1019773
test byte [eax + 0x1c], 4
je 0x1019773
mov ecx, dword [esi + 0x28]
push dword [ecx]
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
mov eax, dword [esi + 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10198f9
cmp dword [esi + 0x280], 0
je 0x10197da
push 0x898
lea eax, [ebp - 0x1134]
push eax
push ecx
call fcn.010145ba
test eax, eax
jne 0x10197da
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10197ce
test byte [eax + 0x1c], 4
je 0x10197ce
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.01015773
lea eax, [ebp - 0x1134]
push eax
jmp 0x1019886
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 8]
test bl, 4
je 0x1019827
test edx, edx
je 0x1019803
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101984e
test byte [eax + 0x1c], 4
je 0x101984e
push edx
push dword [ecx]
push edi
push 0x2b
jmp 0x1019843
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10198f9
test byte [eax + 0x1c], 1
je 0x10198f9
push dword [ecx]
push edi
push 0x2c
jmp 0x10198ac
test edx, edx
je 0x1019856
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101984e
test byte [eax + 0x1c], 4
je 0x101984e
push edx
push dword [ecx]
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015773
mov eax, dword [esi + 0x28]
push dword [eax + 8]
jmp 0x1019886
mov edx, dword [ecx + 4]
test edx, edx
je 0x1019895
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1019880
test byte [eax + 0x1c], 4
je 0x1019880
push edx
push dword [ecx]
push edi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015773
mov eax, dword [esi + 0x28]
push dword [eax + 4]
mov ecx, esi
call fcn.01018b0a
mov dword [ebp - 0x1138], eax
jmp 0x10198f0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10198f9
test byte [eax + 0x1c], 1
je 0x10198f9
push dword [ecx]
push edi
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
jmp 0x10198f0
cmp eax, 0x8007000b
jne 0x10198f9
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10198e5
test byte [eax + 0x1c], 4
je 0x10198e5
mov ecx, dword [esi + 0x28]
push dword [ecx]
push edi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
mov eax, dword [esi + 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1138], 0
jne 0x1019913
mov ecx, esi
call fcn.01017ef4
jmp 0x10196e6
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.01011f27
leave
ret