Function at 0x10388a4
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov edi, 0x1002380
cmp eax, 0x1075004
je 0x10388dc
test byte [eax + 0x1c], 4
je 0x10388dc
cmp byte [eax + 0x19], 5
jb 0x10388dc
push edi
push 0x118
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov ebx, 0x1077f58
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
call fcn.010353a9
mov esi, eax
test esi, esi
je 0x1038d2d
cmp dword [esi + 0x28], 0
jbe 0x103890e
push 4
mov ecx, esi
call fcn.010370ab
jmp 0x1038d2d
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
mov dword [ebp - 8], edx
test ecx, ecx
jne 0x1038d02
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038949
test byte [eax + 0x1c], 4
je 0x1038949
cmp byte [eax + 0x19], 5
jb 0x1038949
push edx
push edi
push 0x119
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
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 0x10389a1
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x10389a1
test byte [eax + 0x1c], 4
je 0x10389a1
cmp byte [eax + 0x19], 2
jb 0x10389a1
call ebx
push eax
mov eax, dword [0x1075004]
push edi
push 0x11a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
call fcn.01036a95
test eax, eax
jne 0x10389db
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x10389e0
test byte [eax + 0x1c], 4
je 0x10389e0
cmp byte [eax + 0x19], 2
jb 0x10389e0
call ebx
push eax
mov eax, dword [0x1075004]
push edi
push 0x11b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, dword [0x1075004]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1038a86
cmp dword [esi + 0x5e4], 1
jne 0x1038a5c
cmp eax, 0x1075004
je 0x1038a19
test byte [eax + 0x1c], 4
je 0x1038a19
cmp byte [eax + 0x19], 5
jb 0x1038a19
push ecx
push edi
push 0x11c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1038a81
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038a86
test byte [eax + 0x1c], 4
je 0x1038a86
cmp byte [eax + 0x19], 2
jb 0x1038a86
call ebx
push eax
push dword [esi + 0x34]
mov eax, dword [0x1075004]
push edi
push 0x11d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x1038a81
cmp eax, 0x1075004
je 0x1038a86
test byte [eax + 0x1c], 4
je 0x1038a86
cmp byte [eax + 0x19], 3
jb 0x1038a86
push ecx
push edi
push 0x11e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
mov eax, dword [0x1075004]
cmp dword [esi + 0x1c], 8
jne 0x1038c56
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1038b07
mov ebx, 0x1075004
cmp eax, ebx
je 0x1038abe
test byte [eax + 0x1c], 4
je 0x1038abe
cmp byte [eax + 0x19], 5
jb 0x1038abe
push ecx
push edi
push 0x11f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1038b00
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1038b0c
test byte [eax + 0x1c], 4
je 0x1038b0c
cmp byte [eax + 0x19], 2
jb 0x1038b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x2c]
mov eax, dword [0x1075004]
push edi
push 0x120
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
mov eax, dword [0x1075004]
jmp 0x1038b0c
mov ebx, 0x1075004
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x1038b8b
cmp eax, ebx
je 0x1038b3b
test byte [eax + 0x1c], 4
je 0x1038b3b
cmp byte [eax + 0x19], 5
jb 0x1038b3b
push ecx
push dword [esi + 0x18]
push edi
push 0x121
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01044210
push dword [esi + 0x164]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1038b86
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1038bb1
test byte [eax + 0x1c], 4
je 0x1038b8b
cmp byte [eax + 0x19], 5
jb 0x1038b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x164]
mov eax, dword [0x1075004]
push dword [esi + 0x18]
push edi
push 0x122
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01044197
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1038bb1
test byte [eax + 0x1c], 4
je 0x1038bb1
cmp byte [eax + 0x19], 5
jb 0x1038bb1
push edi
push 0x123
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [0x1075004]
mov ecx, dword [esi + 0x594]
test ecx, ecx
je 0x1038c56
mov ecx, dword [ecx]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1038c56
jmp 0x1038c47
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
mov dword [ebp - 4], ecx
cmp eax, 0x1075004
je 0x1038bfd
test byte [eax + 0x1c], 4
je 0x1038bfd
cmp byte [eax + 0x19], 5
jb 0x1038bfd
push dword [ebx + 8]
push edi
push 0x124
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1038c42
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038c47
test byte [eax + 0x1c], 4
je 0x1038c47
cmp byte [eax + 0x19], 2
jb 0x1038c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 8]
mov eax, dword [0x1075004]
push edi
push 0x125
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
mov eax, dword [0x1075004]
lea ecx, [esi + 0x594]
cmp dword [ebp - 4], ecx
jne 0x1038bce
cmp dword [ebp + 0xc], 0
je 0x1038ce9
mov ebx, dword [ebp + 8]
push ebx
push 1
call fcn.0104de61
test eax, eax
je 0x1038c9e
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x1038c9e
test byte [ecx + 0x1c], 4
je 0x1038c9e
cmp byte [ecx + 0x19], 2
jb 0x1038c9e
push eax
push dword [ebx + 8]
push edi
push 0x126
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01014881
push dword [esi + 0xf8]
push dword [ebp - 8]
push 0x17
push 0
call fcn.0104e6b1
test eax, eax
jne 0x1038ce9
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038ce9
test byte [eax + 0x1c], 4
je 0x1038ce9
cmp byte [eax + 0x19], 2
jb 0x1038ce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0x127
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push 1
push esi
call fcn.01038270
push 0x1077f54
call fcn.01034483
mov ebx, 0x1077f58
jmp 0x1038d2d
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x1038d2d
test byte [eax + 0x1c], 4
je 0x1038d2d
cmp byte [eax + 0x19], 2
jb 0x1038d2d
push ecx
push edx
push edi
push 0x128
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010148b3
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 8