Function at 0x422790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x581d10]
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 [0x5afcf8]
mov ecx, edi
push eax
mov dword [esp + 0x10], 0x55a89c
mov dword [esp + 0x14], 1
call fcn.004242d0
test al, al
jne 0x4227fa
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.vmodule
push eax
mov ecx, edi
mov dword [esp + 0x14], 7
call fcn.004242d0
test al, al
je 0x4228d8
cmp dword [0x5afce0], ebx
je 0x42280f
cmp byte [0x5afd70], bl
jne 0x422a12
int3
mov eax, dword [0x5afcd0]
push 0x10
mov dword [0x5afce0], eax
call fcn.004b1c79
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x42288a
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], 0x55a89c
mov dword [esp + 0x20], 1
mov ebx, 6
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00424360
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00424360
mov ecx, dword [esp + 0x14]
push eax
call fcn.0042ebf0
mov dword [0x5afcd0], eax
jmp 0x422890
mov dword [0x5afcd0], ebx
test bl, 4
je 0x4228c0
and ebx, 0xfffffffb
cmp dword [esp + 0x38], 0x10
jb 0x4228ab
push dword [esp + 0x24]
call fcn.004b1ca1
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
test bl, 2
je 0x4228d8
cmp dword [esp + 0x50], 0x10
jb 0x4228d8
push dword [esp + 0x3c]
call fcn.004b1ca1
add esp, 4
mov eax, dword [esi]
mov dword [0x5a8910], eax
test al, 1
jne 0x4228f7
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.00422540
cmp dword [0x5afce4], 0
jne 0x42291b
push 0xffffffffffffffff
push dword [0x5afcd8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x422927
push dword [0x5afcdc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5afcf0]
test eax, eax
je 0x422941
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5afcf0], 0
mov edx, dword [0x5afccc]
test edx, edx
jne 0x422978
push 0x18
call fcn.004b1c79
mov edx, eax
add esp, 4
test edx, edx
je 0x422970
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x422972
xor edx, edx
mov dword [0x5afccc], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x422985
xor ecx, ecx
jmp 0x42299f
mov ecx, edi
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422990
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00417b50
cmp dword [esi + 0xc], 0
jne 0x4229c2
mov eax, dword [0x5afccc]
cmp dword [eax + 0x14], 8
jb 0x4229bb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004226b0
cmp dword [0x5afce4], 0
mov bl, al
jne 0x4229f2
push dword [0x5afcd8]
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.004f1cdb
mov esp, ebp
pop ebp
ret
push dword [0x5afcdc]
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.004f1cdb
mov esp, ebp
pop ebp
ret
push 1
call fcn.004fc384
int3