Function at 0x401dd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4341c0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [0x4369b8]
lea ecx, [esp + 0x18]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
mov dword [esp + 0x18], ebx
push 0x42fc7c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00404dd0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc]
mov esi, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call fcn.00408840
cmp dword [eax], esi
setne al
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x13], al
jb 0x401e4e
push dword [esp + 0x1c]
call fcn.00410fb4
mov al, byte [esp + 0x17]
add esp, 4
mov esi, dword [esp + 0x14]
test al, al
jne 0x401e6a
push str.vmodule
mov ecx, esi
call fcn.00407f80
test al, al
je 0x401fc3
cmp dword [0x436998], ebx
je 0x401e7f
cmp byte [0x437989], bl
jne 0x4020f7
int3
mov eax, dword [0x43697c]
push 0x10
mov dword [0x436998], eax
call fcn.00410f63
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x401f15
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.00404dd0
push 1
push 0x42fc7c
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00404dd0
push ecx
lea eax, [esp + 0x38]
mov ecx, esi
push eax
lea eax, [esp + 0x6c]
mov ebx, 0x1e
push eax
call fcn.00408010
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00408010
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040da00
mov dword [0x43697c], eax
jmp 0x401f1b
mov dword [0x43697c], ebx
test bl, 0x10
je 0x401f4b
and ebx, 0xffffffef
cmp dword [esp + 0x60], 0x10
jb 0x401f36
push dword [esp + 0x4c]
call fcn.00410fb4
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
test bl, 8
je 0x401f7b
and ebx, 0xfffffff7
cmp dword [esp + 0x78], 0x10
jb 0x401f66
push dword [esp + 0x64]
call fcn.00410fb4
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
test bl, 4
je 0x401fab
and ebx, 0xfffffffb
cmp dword [esp + 0x30], 0x10
jb 0x401f96
push dword [esp + 0x1c]
call fcn.00410fb4
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
test bl, 2
je 0x401fc3
cmp dword [esp + 0x48], 0x10
jb 0x401fc3
push dword [esp + 0x34]
call fcn.00410fb4
add esp, 4
mov eax, dword [edi]
mov dword [0x4355f0], eax
test al, 1
jne 0x401fe2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004118e4
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
call fcn.00401b90
cmp dword [0x436990], 0
jne 0x402006
push 0xffffffffffffffff
push dword [0x436988]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402012
push dword [0x436984]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x436980]
test eax, eax
je 0x40202c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x436980], 0
mov edx, dword [0x436974]
test edx, edx
jne 0x402063
push 0x18
call fcn.00410f63
mov edx, eax
add esp, 4
test edx, edx
je 0x40205b
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x40205d
xor edx, edx
mov dword [0x436974], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x402070
xor ecx, ecx
jmp 0x402084
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402075
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00405260
cmp dword [edi + 0xc], 0
jne 0x4020a7
mov eax, dword [0x436974]
cmp dword [eax + 0x14], 8
jb 0x4020a0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00401ce0
cmp dword [0x436990], 0
mov bl, al
jne 0x4020d7
push dword [0x436988]
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.004118e4
mov esp, ebp
pop ebp
ret
push dword [0x436984]
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.004118e4
mov esp, ebp
pop ebp
ret
push 1
call fcn.004142c9
int3