Function at 0x10380f3
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
mov edi, 0x1002380
cmp eax, ebx
je 0x1038157
test byte [eax + 0x1c], 4
je 0x1038130
cmp byte [eax + 0x19], 5
jb 0x1038130
push edi
push 0x108
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1038157
test byte [eax + 0x1c], 4
je 0x1038157
cmp byte [eax + 0x19], 5
jb 0x1038157
mov ecx, dword [ebp + 8]
push dword [ecx + 0x18]
push edi
push 0x109
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0x1077f58
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
call fcn.01034f9c
mov esi, eax
test esi, esi
je 0x103847d
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x1038453
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10381a8
test byte [eax + 0x1c], 4
je 0x10381a8
cmp byte [eax + 0x19], 5
jb 0x10381a8
push dword [esi + 0x18]
push edi
push 0x10a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
and dword [esi], 0
and dword [esi + 4], 0
push dword [0x1077f50]
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1038200
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038205
test byte [eax + 0x1c], 4
je 0x1038205
cmp byte [eax + 0x19], 2
jb 0x1038205
call ebx
push eax
mov eax, dword [0x1075004]
push edi
push 0x10b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [0x1075004]
cmp dword [ebp + 0x10], 0
je 0x103824a
call fcn.01036688
test eax, eax
jne 0x1038245
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x103824a
test byte [eax + 0x1c], 4
je 0x103824a
cmp byte [eax + 0x19], 2
jb 0x103824a
call ebx
push eax
mov eax, dword [0x1075004]
push edi
push 0x10c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [0x1075004]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x10382c2
cmp eax, 0x1075004
je 0x1038279
test byte [eax + 0x1c], 4
je 0x1038279
cmp byte [eax + 0x19], 5
jb 0x1038279
push ecx
push dword [esi + 0x18]
push edi
push 0x10d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10382bd
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x10382c2
test byte [eax + 0x1c], 4
je 0x10382c2
cmp byte [eax + 0x19], 5
jb 0x10382c2
call ebx
push eax
push dword [esi + 0x2c]
mov eax, dword [0x1075004]
push dword [esi + 0x18]
push edi
push 0x10e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
mov eax, dword [0x1075004]
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x1038343
cmp eax, 0x1075004
je 0x10382f4
test byte [eax + 0x1c], 4
je 0x10382f4
cmp byte [eax + 0x19], 5
jb 0x10382f4
push ecx
push dword [esi + 0x18]
push edi
push 0x10f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
push dword [esi + 0x164]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x103833e
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038343
test byte [eax + 0x1c], 4
je 0x1038343
cmp byte [eax + 0x19], 5
jb 0x1038343
call ebx
push eax
push dword [esi + 0x164]
mov eax, dword [0x1075004]
push dword [esi + 0x18]
push edi
push 0x110
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
mov eax, dword [0x1075004]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10383b6
cmp eax, 0x1075004
je 0x1038372
test byte [eax + 0x1c], 4
je 0x1038372
cmp byte [eax + 0x19], 5
jb 0x1038372
push ecx
push dword [esi + 0x18]
push edi
push 0x111
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10383b6
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x10383b6
test byte [eax + 0x1c], 4
je 0x10383b6
cmp byte [eax + 0x19], 5
jb 0x10383b6
call ebx
push eax
push dword [esi + 0x34]
mov eax, dword [0x1075004]
push dword [esi + 0x18]
push edi
push 0x112
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
push 0x1077f54
call fcn.01034076
push esi
push dword [esi + 0x15c]
call fcn.01036bf0
test eax, eax
jne 0x1038405
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038405
test byte [eax + 0x1c], 4
je 0x1038405
cmp byte [eax + 0x19], 2
jb 0x1038405
push dword [esi + 0x18]
mov ecx, dword [esi + 0x15c]
push dword [ecx + 0x18]
push edi
push 0x113
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a693
cmp dword [ebp + 0xc], 1
jne 0x1038449
mov ebx, dword [ebp + 8]
push ebx
push 1
call fcn.0104d99d
test eax, eax
je 0x1038449
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x1038449
test byte [ecx + 0x1c], 4
je 0x1038449
cmp byte [ecx + 0x19], 2
jb 0x1038449
push eax
push dword [ebx + 8]
push edi
push 0x114
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010146d9
push 1
push esi
call fcn.01037d4e
jmp 0x103847d
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x103847d
test byte [eax + 0x1c], 4
je 0x103847d
cmp byte [eax + 0x19], 2
jb 0x103847d
push ecx
push dword [esi + 0x18]
push edi
push 0x115
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a693
push 0x1077f58
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0xc