Function at 0x409760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4a22d0]
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 [0x4a56dc]
mov ecx, edi
push eax
mov dword [esp + 0x10], 0x49d518
mov dword [esp + 0x14], 1
call fcn.004129c0
test al, al
jne 0x4097ca
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.vmodule
push eax
mov ecx, edi
mov dword [esp + 0x14], 7
call fcn.004129c0
test al, al
je 0x4098a3
cmp dword [0x4a56c0], ebx
je 0x4097df
cmp byte [0x4a5798], bl
jne 0x4099d7
int3
mov eax, dword [0x4a56b0]
push 0x10
mov dword [0x4a56c0], eax
call fcn.0046d916
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x409855
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.vmodule
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x28], 7
push eax
mov ecx, edi
mov dword [esp + 0x20], 0x49d518
mov dword [esp + 0x24], 1
mov ebx, 6
call fcn.00412ac0
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00412ac0
mov ecx, dword [esp + 0x14]
push eax
call fcn.00425d70
mov dword [0x4a56b0], eax
jmp 0x40985b
mov dword [0x4a56b0], ebx
test bl, 4
je 0x40988b
and ebx, 0xfffffffb
cmp dword [esp + 0x38], 0x10
jb 0x409876
push dword [esp + 0x24]
call fcn.0046d967
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
test bl, 2
je 0x4098a3
cmp dword [esp + 0x50], 0x10
jb 0x4098a3
push dword [esp + 0x3c]
call fcn.0046d967
add esp, 4
mov eax, dword [esi]
mov dword [0x4a36cc], eax
test al, 1
jne 0x4098c2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.00409510
cmp dword [0x4a56cc], 0
jne 0x4098e6
push 0xffffffffffffffff
push dword [0x4a56b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4098f2
push dword [0x4a56bc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a56d0]
test eax, eax
je 0x40990c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4a56d0], 0
mov edx, dword [0x4a56ac]
test edx, edx
jne 0x409943
push 0x18
call fcn.0046d916
mov edx, eax
add esp, 4
test edx, edx
je 0x40993b
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x40993d
xor edx, edx
mov dword [0x4a56ac], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x409950
xor ecx, ecx
jmp 0x409964
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409955
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.004085c0
cmp dword [esi + 0xc], 0
jne 0x409987
mov eax, dword [0x4a56ac]
cmp dword [eax + 0x14], 8
jb 0x409980
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00409680
cmp dword [0x4a56cc], 0
mov bl, al
jne 0x4099b7
push dword [0x4a56b8]
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.0046e2b4
mov esp, ebp
pop ebp
ret
push dword [0x4a56bc]
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.0046e2b4
mov esp, ebp
pop ebp
ret
push 1
call fcn.004721c7
int3