Function at 0x422880
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x583d10]
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 [0x5b1cf8]
mov ecx, edi
push eax
mov dword [esp + 0x10], 0x55bc1c
mov dword [esp + 0x14], 1
call fcn.004243c0
test al, al
jne 0x4228ea
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.vmodule
push eax
mov ecx, edi
mov dword [esp + 0x14], 7
call fcn.004243c0
test al, al
je 0x4229c8
cmp dword [0x5b1ce0], ebx
je 0x4228ff
cmp byte [0x5b1d70], bl
jne 0x422b02
int3
mov eax, dword [0x5b1cd0]
push 0x10
mov dword [0x5b1ce0], eax
call fcn.004b2155
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x42297a
sub esp, 8
mov dword [esp + 0x24], str.vmodule
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 7
mov ecx, edi
mov dword [esp + 0x1c], 0x55bc1c
mov dword [esp + 0x20], 1
mov ebx, 6
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00424450
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00424450
mov ecx, dword [esp + 0x14]
push eax
call fcn.0042ebf0
mov dword [0x5b1cd0], eax
jmp 0x422980
mov dword [0x5b1cd0], ebx
test bl, 4
je 0x4229b0
and ebx, 0xfffffffb
cmp dword [esp + 0x38], 0x10
jb 0x42299b
push dword [esp + 0x24]
call fcn.004b217d
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
test bl, 2
je 0x4229c8
cmp dword [esp + 0x50], 0x10
jb 0x4229c8
push dword [esp + 0x3c]
call fcn.004b217d
add esp, 4
mov eax, dword [esi]
mov dword [0x5aa910], eax
test al, 1
jne 0x4229e7
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.00422630
cmp dword [0x5b1ce4], 0
jne 0x422a0b
push 0xffffffffffffffff
push dword [0x5b1cd8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x422a17
push dword [0x5b1cdc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5b1cf0]
test eax, eax
je 0x422a31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5b1cf0], 0
mov edx, dword [0x5b1ccc]
test edx, edx
jne 0x422a68
push 0x18
call fcn.004b2155
mov edx, eax
add esp, 4
test edx, edx
je 0x422a60
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x422a62
xor edx, edx
mov dword [0x5b1ccc], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x422a75
xor ecx, ecx
jmp 0x422a8f
mov ecx, edi
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a80
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00417b50
cmp dword [esi + 0xc], 0
jne 0x422ab2
mov eax, dword [0x5b1ccc]
cmp dword [eax + 0x14], 8
jb 0x422aab
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004227a0
cmp dword [0x5b1ce4], 0
mov bl, al
jne 0x422ae2
push dword [0x5b1cd8]
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.004f225b
mov esp, ebp
pop ebp
ret
push dword [0x5b1cdc]
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.004f225b
mov esp, ebp
pop ebp
ret
push 1
call fcn.004fc904
int3