Function at 0x10003000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x100751e0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov edi, dword [0x10077dc8]
mov ecx, edi
push eax
mov dword [esp + 0x10], 0x100707d8
mov dword [esp + 0x14], 1
call fcn.10008980
test al, al
jne 0x1000306a
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.vmodule
push eax
mov ecx, edi
mov dword [esp + 0x14], 7
call fcn.10008980
test al, al
je 0x10003143
cmp dword [0x10077da0], ebx
je 0x1000307f
cmp byte [0x10077e50], bl
jne 0x10003277
int3
mov eax, dword [0x10077d90]
push 0x10
mov dword [0x10077da0], eax
call fcn.10049954
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x100030f5
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.vmodule
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x28], 7
push eax
mov ecx, edi
mov dword [esp + 0x20], 0x100707d8
mov dword [esp + 0x24], 1
mov ebx, 6
call fcn.10008a70
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10008a70
mov ecx, dword [esp + 0x14]
push eax
call fcn.10014430
mov dword [0x10077d90], eax
jmp 0x100030fb
mov dword [0x10077d90], ebx
test bl, 4
je 0x1000312b
and ebx, 0xfffffffb
cmp dword [esp + 0x38], 0x10
jb 0x10003116
push dword [esp + 0x24]
call fcn.100499a5
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
test bl, 2
je 0x10003143
cmp dword [esp + 0x50], 0x10
jb 0x10003143
push dword [esp + 0x3c]
call fcn.100499a5
add esp, 4
mov eax, dword [esi]
mov dword [0x100765ec], eax
test al, 1
jne 0x10003162
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.10002db0
cmp dword [0x10077db0], 0
jne 0x10003186
push 0xffffffffffffffff
push dword [0x10077d9c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10003192
push dword [0x10077d98]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10077db4]
test eax, eax
je 0x100031ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10077db4], 0
mov edx, dword [0x10077d8c]
test edx, edx
jne 0x100031e3
push 0x18
call fcn.10049954
mov edx, eax
add esp, 4
test edx, edx
je 0x100031db
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x100031dd
xor edx, edx
mov dword [0x10077d8c], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x100031f0
xor ecx, ecx
jmp 0x10003204
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100031f5
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.10005d60
cmp dword [esi + 0xc], 0
jne 0x10003227
mov eax, dword [0x10077d8c]
cmp dword [eax + 0x14], 8
jb 0x10003220
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10002f20
cmp dword [0x10077db0], 0
mov bl, al
jne 0x10003257
push dword [0x10077d9c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
push dword [0x10077d98]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x54]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
push 1
call fcn.1004d551
int3