Function at 0x4060e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xe0]
push edi
mov edi, dword [0x55c880]
push 1
push 0x50e8f8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
call fcn.004038d0
lea eax, [esp + 0xe4]
mov ecx, edi
push eax
mov ebx, 1
call fcn.0040c0b0
test al, al
jne 0x4061a4
push 7
push str.vmodule
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], al
call fcn.004038d0
lea eax, [esp + 0xcc]
mov ecx, edi
push eax
mov ebx, 3
call fcn.0040c0b0
mov byte [esp + 0x13], 0
test al, al
je 0x4061a9
mov byte [esp + 0x13], 1
test bl, 2
je 0x4061e8
and ebx, 0xfffffffd
cmp dword [esp + 0xe0], 0x10
jb 0x4061ca
push dword [esp + 0xcc]
call fcn.0048185e
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
test bl, 1
je 0x406209
and ebx, 0xfffffffe
cmp dword [esp + 0xf8], 0x10
jb 0x406209
push dword [esp + 0xe4]
call fcn.0048185e
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4063a1
cmp dword [0x55c86c], 0
jne 0x4064de
test bl, 4
je 0x406232
lea ecx, [esp + 0x18]
and ebx, 0xfffffffb
call fcn.00406570
mov eax, dword [0x55c860]
push 0x10
mov dword [0x55c86c], eax
call fcn.00481836
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4062bc
push str.vmodule
lea ecx, [esp + 0x118]
call fcn.00402570
push 0x50e8f8
lea ecx, [esp + 0xe8]
or ebx, 8
call fcn.00402570
sub esp, 8
lea eax, [esp + 0x11c]
mov ecx, edi
or ebx, 0x70
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040c160
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.0040c160
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004146f0
mov dword [0x55c860], eax
jmp 0x4062c6
mov dword [0x55c860], 0
test bl, 0x40
je 0x406305
and ebx, 0xffffffbf
cmp dword [esp + 0xe0], 0x10
jb 0x4062e7
push dword [esp + 0xcc]
call fcn.0048185e
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
test bl, 0x20
je 0x406344
and ebx, 0xffffffdf
cmp dword [esp + 0x110], 0x10
jb 0x406326
push dword [esp + 0xfc]
call fcn.0048185e
add esp, 4
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
test bl, 0x10
je 0x406383
and ebx, 0xffffffef
cmp dword [esp + 0xf8], 0x10
jb 0x406365
push dword [esp + 0xe4]
call fcn.0048185e
add esp, 4
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], 0
mov byte [esp + 0xe4], 0
test bl, 8
je 0x4063a1
cmp dword [esp + 0x128], 0x10
jb 0x4063a1
push dword [esp + 0x114]
call fcn.0048185e
add esp, 4
mov eax, dword [esi]
mov dword [0x5569c0], eax
test al, 1
jne 0x4063c3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.00405e80
cmp dword [0x55c868], 0
jne 0x4063e7
push 0xffffffffffffffff
push dword [0x55c878]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4063f3
push dword [0x55c858]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55c864]
test eax, eax
je 0x40640d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x55c864], 0
mov edx, dword [0x55c850]
test edx, edx
jne 0x406444
push 0x18
call fcn.00481836
mov edx, eax
add esp, 4
test edx, edx
je 0x40643c
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x40643e
xor edx, edx
mov dword [0x55c850], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x406451
xor ecx, ecx
jmp 0x406465
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406456
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00407560
cmp dword [esi + 0xc], 0
jne 0x406488
mov eax, dword [0x55c850]
cmp dword [eax + 0x14], 8
jb 0x406481
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406000
cmp dword [0x55c868], 0
mov bl, al
jne 0x4064bb
push dword [0x55c878]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
push dword [0x55c858]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x12c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
call fcn.004146c0
int3