Function at 0x416fd0
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.0041c1b0
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 0x417000
sub eax, edx
push eax
push str.enable_dcheck
lea ecx, [esp + 0x20]
call fcn.00403870
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.0041b070
cmp dword [esp + 0x30], 0x10
mov byte [0x451100], al
jb 0x41703d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00424b3c
add esp, 4
mov eax, dword [0x451104]
mov esi, eax
cmp eax, edi
je 0x417059
lea ecx, [eax + 4]
call fcn.00416df0
push esi
call fcn.00424b3c
add esp, 4
mov eax, 0x443a68
mov dword [0x451104], 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 0x417074
sub eax, edx
push eax
push 0x443a68
lea ecx, [esp + 0x3c]
call fcn.00403870
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
mov ebx, 1
call fcn.0041b070
test al, al
jne 0x4170f2
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 0x4170c0
sub eax, edx
push eax
push str.vmodule
lea ecx, [esp + 0x20]
call fcn.00403870
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov ebx, 3
call fcn.0041b070
mov byte [esp + 0x13], 0
test al, al
je 0x4170f7
mov byte [esp + 0x13], 1
test bl, 2
je 0x417124
and ebx, 0xfffffffd
cmp dword [esp + 0x30], 0x10
jb 0x417113
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00424b3c
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
test bl, 1
je 0x417140
and ebx, 0xfffffffe
cmp dword [esp + 0x4c], 0x10
jb 0x417140
mov edx, dword [esp + 0x38]
push edx
call fcn.00424b3c
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4172c7
push 0x1c
call fcn.00424bee
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x41720a
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 0x417180
sub eax, esi
push eax
push str.vmodule
lea ecx, [esp + 0x3c]
call fcn.00403870
mov eax, 0x443a68
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 0x4171b8
sub eax, esi
push eax
push 0x443a68
lea ecx, [esp + 0x20]
call fcn.00403870
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.0041c220
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.0041c220
push eax
mov ecx, edi
call fcn.0041f2b0
jmp 0x41720f
mov esi, 0x10
mov dword [0x451104], eax
test bl, 0x20
je 0x417247
and ebx, 0xffffffdf
cmp dword [esp + 0x68], esi
jb 0x41722f
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00424b3c
add esp, 4
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
jmp 0x41724c
mov edi, 0xf
test bl, 0x10
je 0x417281
and ebx, 0xffffffef
cmp dword [esp + 0x84], esi
jb 0x41726a
mov edx, dword [esp + 0x70]
push edx
call fcn.00424b3c
add esp, 4
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
test bl, 8
je 0x4172ad
and ebx, 0xfffffff7
cmp dword [esp + 0x30], esi
jb 0x41729c
mov eax, dword [esp + 0x1c]
push eax
call fcn.00424b3c
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
test bl, 4
je 0x4172c5
cmp dword [esp + 0x4c], esi
jb 0x4172c5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00424b3c
add esp, 4
xor edi, edi
mov ebx, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
push ebx
push edx
call fcn.00416030
add esp, 8
cmp dword [0x451128], edi
jne 0x4172f7
mov eax, dword [0x45112c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x417302
mov ecx, dword [0x451124]
call fcn.00418f20
mov eax, dword [0x451110]
cmp eax, edi
je 0x417318
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x451110], edi
mov eax, dword [esp + 0x90]
mov dword [0x44f004], eax
cmp eax, edi
je 0x4173dd
cmp eax, 2
je 0x4173dd
mov ecx, dword [0x45110c]
cmp ecx, edi
jne 0x417365
push 0x1c
call fcn.00424bee
add esp, 4
xor ecx, ecx
cmp eax, edi
je 0x41735f
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], edi
mov word [eax + 4], cx
mov ecx, eax
mov dword [0x45110c], ecx
mov eax, ebx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x417370
sub eax, esi
sar eax, 1
push eax
push ebx
call fcn.004084b0
cmp dword [esp + 0x98], edi
jne 0x4173a9
mov eax, dword [0x45110c]
cmp dword [eax + 0x18], 8
jb 0x41739f
mov eax, dword [eax + 4]
jmp 0x4173a2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004161e0
cmp dword [0x451128], edi
jne 0x4173cb
mov edx, dword [0x45112c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov ecx, dword [0x451124]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
jmp fcn.00418f30
cmp dword [0x451128], edi
jne 0x4173cb
mov eax, dword [0x45112c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret