Function at 0x40ab60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x49f270]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [0x4a2cf4]
lea ecx, [esp + 0x18]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
mov dword [esp + 0x18], ebx
push 0x49a11c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00404910
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc]
mov esi, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call fcn.0040e6d0
cmp dword [eax], esi
setne al
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x13], al
jb 0x40abde
push dword [esp + 0x1c]
call fcn.00466fe4
mov al, byte [esp + 0x17]
add esp, 4
mov esi, dword [esp + 0x14]
test al, al
jne 0x40abfa
push str.vmodule
mov ecx, esi
call fcn.0040d740
test al, al
je 0x40ad53
cmp dword [0x4a2ce0], ebx
je 0x40ac0f
cmp byte [0x4a3e58], bl
jne 0x40ae87
int3
mov eax, dword [0x4a2cc4]
push 0x10
mov dword [0x4a2ce0], eax
call fcn.00467030
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x40aca5
push 7
push str.vmodule
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00404910
push 1
push 0x49a11c
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00404910
push ecx
lea eax, [esp + 0x38]
mov ecx, esi
push eax
lea eax, [esp + 0x6c]
mov ebx, 0x1e
push eax
call fcn.0040d7d0
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0040d7d0
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0041dc30
mov dword [0x4a2cc4], eax
jmp 0x40acab
mov dword [0x4a2cc4], ebx
test bl, 0x10
je 0x40acdb
and ebx, 0xffffffef
cmp dword [esp + 0x60], 0x10
jb 0x40acc6
push dword [esp + 0x4c]
call fcn.00466fe4
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
test bl, 8
je 0x40ad0b
and ebx, 0xfffffff7
cmp dword [esp + 0x78], 0x10
jb 0x40acf6
push dword [esp + 0x64]
call fcn.00466fe4
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
test bl, 4
je 0x40ad3b
and ebx, 0xfffffffb
cmp dword [esp + 0x30], 0x10
jb 0x40ad26
push dword [esp + 0x1c]
call fcn.00466fe4
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
test bl, 2
je 0x40ad53
cmp dword [esp + 0x48], 0x10
jb 0x40ad53
push dword [esp + 0x34]
call fcn.00466fe4
add esp, 4
mov eax, dword [edi]
mov dword [0x4a06a0], eax
test al, 1
jne 0x40ad72
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
call fcn.0040a930
cmp dword [0x4a2cd8], 0
jne 0x40ad96
push 0xffffffffffffffff
push dword [0x4a2cd0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40ada2
push dword [0x4a2ccc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a2cc8]
test eax, eax
je 0x40adbc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4a2cc8], 0
mov edx, dword [0x4a2cbc]
test edx, edx
jne 0x40adf3
push 0x18
call fcn.00467030
mov edx, eax
add esp, 4
test edx, edx
je 0x40adeb
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x40aded
xor edx, edx
mov dword [0x4a2cbc], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x40ae00
xor ecx, ecx
jmp 0x40ae14
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae05
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00404be0
cmp dword [edi + 0xc], 0
jne 0x40ae37
mov eax, dword [0x4a2cbc]
cmp dword [eax + 0x14], 8
jb 0x40ae30
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040aa80
cmp dword [0x4a2cd8], 0
mov bl, al
jne 0x40ae67
push dword [0x4a2cd0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
push dword [0x4a2ccc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x7c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
push 1
call fcn.0046a39a
int3