Function at 0x409cc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push edi
mov edi, dword [0x4f9f64]
xor ebx, ebx
push 1
push 0x4f1410
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00408460
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00410620
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0xf], al
jb 0x409d2d
push dword [esp + 0x14]
call fcn.004a733a
mov al, byte [esp + 0x13]
add esp, 4
test al, al
jne 0x409d45
push str.vmodule
mov ecx, edi
call fcn.00410690
test al, al
je 0x409e9e
cmp dword [0x4f9f4c], ebx
je 0x409d5a
cmp byte [0x4fa020], bl
jne 0x409fd2
int3
mov eax, dword [0x4f9f30]
push 0x10
mov dword [0x4f9f4c], eax
call fcn.004a72c4
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x409df0
push 7
push str.vmodule
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00408460
push 1
push 0x4f1410
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00408460
push ecx
lea eax, [esp + 0x30]
mov ecx, edi
push eax
lea eax, [esp + 0x64]
mov ebx, 0x1e
push eax
call fcn.00410710
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00410710
mov ecx, dword [esp + 0x18]
push eax
call fcn.00426bc0
mov dword [0x4f9f30], eax
jmp 0x409df6
mov dword [0x4f9f30], ebx
test bl, 0x10
je 0x409e26
and ebx, 0xffffffef
cmp dword [esp + 0x58], 0x10
jb 0x409e11
push dword [esp + 0x44]
call fcn.004a733a
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
test bl, 8
je 0x409e56
and ebx, 0xfffffff7
cmp dword [esp + 0x70], 0x10
jb 0x409e41
push dword [esp + 0x5c]
call fcn.004a733a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
test bl, 4
je 0x409e86
and ebx, 0xfffffffb
cmp dword [esp + 0x28], 0x10
jb 0x409e71
push dword [esp + 0x14]
call fcn.004a733a
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
test bl, 2
je 0x409e9e
cmp dword [esp + 0x40], 0x10
jb 0x409e9e
push dword [esp + 0x2c]
call fcn.004a733a
add esp, 4
mov eax, dword [esi]
mov dword [0x4f6a20], eax
test al, 1
jne 0x409ebd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.00409a70
cmp dword [0x4f9f44], 0
jne 0x409ee1
push 0xffffffffffffffff
push dword [0x4f9f3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x409eed
push dword [0x4f9f38]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4f9f34]
test eax, eax
je 0x409f07
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f9f34], 0
mov edx, dword [0x4f9f28]
test edx, edx
jne 0x409f3e
push 0x18
call fcn.004a72c4
mov edx, eax
add esp, 4
test edx, edx
je 0x409f36
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x409f38
xor edx, edx
mov dword [0x4f9f28], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x409f4b
xor ecx, ecx
jmp 0x409f5f
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f50
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00408730
cmp dword [esi + 0xc], 0
jne 0x409f82
mov eax, dword [0x4f9f28]
cmp dword [eax + 0x14], 8
jb 0x409f7b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00409be0
cmp dword [0x4f9f44], 0
mov bl, al
jne 0x409fb2
push dword [0x4f9f3c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
push dword [0x4f9f38]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x74]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
push 1
call fcn.004a9fbe
int3