Function at 0x40f7d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.00412540
mov ebp, eax
mov ebx, 0xf
mov eax, str.enable_dcheck
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f800
sub eax, edx
push eax
push str.enable_dcheck
lea ecx, [esp + 0x20]
call fcn.004066d0
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004114a0
cmp dword [esp + 0x30], 0x10
mov byte [0x442d8c], al
jb 0x40f83d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041c0d7
add esp, 4
mov eax, dword [0x442d90]
mov esi, eax
cmp eax, edi
je 0x40f859
lea ecx, [eax + 4]
call fcn.0040f600
push esi
call fcn.0041c0d7
add esp, 4
mov eax, 0x438968
mov dword [0x442d90], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f874
sub eax, edx
push eax
push 0x438968
lea ecx, [esp + 0x3c]
call fcn.004066d0
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
mov ebx, 1
call fcn.004114a0
test al, al
jne 0x40f8f2
mov byte [esp + 0x1c], al
mov eax, str.vmodule
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f8c0
sub eax, edx
push eax
push str.vmodule
lea ecx, [esp + 0x20]
call fcn.004066d0
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov ebx, 3
call fcn.004114a0
mov byte [esp + 0x13], 0
test al, al
je 0x40f8f7
mov byte [esp + 0x13], 1
test bl, 2
je 0x40f924
and ebx, 0xfffffffd
cmp dword [esp + 0x30], 0x10
jb 0x40f913
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041c0d7
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
test bl, 1
je 0x40f940
and ebx, 0xfffffffe
cmp dword [esp + 0x4c], 0x10
jb 0x40f940
mov edx, dword [esp + 0x38]
push edx
call fcn.0041c0d7
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40fac7
push 0x1c
call fcn.0041c476
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x40fa0a
mov dword [esp + 0x48], eax
mov byte [esp + 0x38], al
mov eax, str.vmodule
mov dword [esp + 0x4c], 0xf
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f980
sub eax, esi
push eax
push str.vmodule
lea ecx, [esp + 0x3c]
call fcn.004066d0
mov eax, 0x438968
or ebx, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f9b8
sub eax, esi
push eax
push 0x438968
lea ecx, [esp + 0x20]
call fcn.004066d0
lea eax, [esp + 0x34]
or ebx, 8
push eax
lea ecx, [esp + 0x70]
mov esi, 0x10
push ecx
or ebx, esi
mov ecx, ebp
or ebx, 0x20
call fcn.004125b0
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.004125b0
push eax
mov ecx, edi
call fcn.004167b0
jmp 0x40fa0f
mov esi, 0x10
mov dword [0x442d90], eax
test bl, 0x20
je 0x40fa47
and ebx, 0xffffffdf
cmp dword [esp + 0x68], esi
jb 0x40fa2f
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041c0d7
add esp, 4
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
jmp 0x40fa4c
mov edi, 0xf
test bl, 0x10
je 0x40fa81
and ebx, 0xffffffef
cmp dword [esp + 0x84], esi
jb 0x40fa6a
mov edx, dword [esp + 0x70]
push edx
call fcn.0041c0d7
add esp, 4
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
test bl, 8
je 0x40faad
and ebx, 0xfffffff7
cmp dword [esp + 0x30], esi
jb 0x40fa9c
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041c0d7
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
test bl, 4
je 0x40fac5
cmp dword [esp + 0x4c], esi
jb 0x40fac5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041c0d7
add esp, 4
xor edi, edi
mov ebx, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
push ebx
push edx
call fcn.0040e710
add esp, 8
cmp dword [0x442db4], edi
jne 0x40faf7
mov eax, dword [0x442db8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40fb02
mov ecx, dword [0x442db0]
call fcn.0040c570
mov eax, dword [0x442d9c]
cmp eax, edi
je 0x40fb18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x442d9c], edi
mov eax, dword [esp + 0x90]
mov dword [0x44100c], eax
cmp eax, edi
je 0x40fbdd
cmp eax, 2
je 0x40fbdd
mov ecx, dword [0x442d98]
cmp ecx, edi
jne 0x40fb65
push 0x1c
call fcn.0041c476
add esp, 4
xor ecx, ecx
cmp eax, edi
je 0x40fb5f
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], edi
mov word [eax + 4], cx
mov ecx, eax
mov dword [0x442d98], ecx
mov eax, ebx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x40fb70
sub eax, esi
sar eax, 1
push eax
push ebx
call fcn.004077a0
cmp dword [esp + 0x98], edi
jne 0x40fba9
mov eax, dword [0x442d98]
cmp dword [eax + 0x18], 8
jb 0x40fb9f
mov eax, dword [eax + 4]
jmp 0x40fba2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040e8c0
cmp dword [0x442db4], edi
jne 0x40fbcb
mov edx, dword [0x442db8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov ecx, dword [0x442db0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
jmp fcn.0040c580
cmp dword [0x442db4], edi
jne 0x40fbcb
mov eax, dword [0x442db8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret