Function at 0x412dc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556070
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5b706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x170], 0
lea ebx, [edi + 0x120]
je 0x412dfd
mov ecx, ebx
call fcn.00413690
cmp dword [edi + 0x1f8], 0
je 0x412e22
cmp dword [edi + 0x1fc], 8
lea eax, [edi + 0x1e8]
jb 0x412e1b
mov eax, dword [edi + 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [edi + 0x1e8]
call fcn.00403d90
mov ecx, dword [edi + 0x1e4]
cmp ecx, 0x10
jb 0x412e67
mov eax, dword [edi + 0x1d0]
inc ecx
cmp ecx, 0x1000
jb 0x412e5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413106
mov eax, edx
push ecx
push eax
call fcn.0051ec14
add esp, 8
mov dword [edi + 0x1e0], 0
mov ecx, ebx
mov dword [edi + 0x1e4], 0xf
mov byte [edi + 0x1d0], 0
call fcn.0040c120
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x108]
push eax
call esi
lea ecx, [edi + 0xf0]
call fcn.00403d90
mov eax, dword [edi + 0xec]
test eax, eax
je 0x412eb3
push eax
call fcn.00403bb0
lea ecx, [edi + 0xd4]
call fcn.00403d90
mov eax, dword [edi + 0xcc]
mov ebx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0xcc]
mov dword [eax + 4], eax
mov dword [edi + 0xd0], 0
mov eax, dword [edi + 0xcc]
cmp ebx, eax
je 0x412f0c
mov esi, dword [ebx]
lea ecx, [ebx + 8]
call fcn.00403d90
push 0x20
push ebx
call fcn.0051ec14
mov eax, dword [edi + 0xcc]
add esp, 8
mov ebx, esi
cmp esi, eax
jne 0x412ee5
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x20
push eax
call fcn.0051ec14
add esp, 8
lea eax, [edi + 0xb4]
push eax
call esi
lea eax, [edi + 0x98]
push eax
call esi
lea ecx, [edi + 0x70]
call fcn.00413ad0
push 0xc
push dword [edi + 0x70]
call fcn.0051ec14
mov eax, dword [edi + 0x68]
add esp, 8
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x68]
mov dword [eax + 4], eax
mov dword [edi + 0x6c], 0
mov eax, dword [edi + 0x68]
cmp esi, eax
je 0x412fbc
nop dword [eax]
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi]
cmp ecx, 0x10
jb 0x412f96
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x412f8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413106
mov eax, edx
push ecx
push eax
call fcn.0051ec14
add esp, 8
push 0x20
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
push esi
mov byte [esi + 8], 0
call fcn.0051ec14
mov eax, dword [edi + 0x68]
add esp, 8
mov esi, ebx
cmp ebx, eax
jne 0x412f60
push 0x20
push eax
call fcn.0051ec14
mov eax, dword [edi + 0x60]
add esp, 8
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x60]
mov dword [eax + 4], eax
mov dword [edi + 0x64], 0
mov eax, dword [edi + 0x60]
cmp esi, eax
je 0x41303e
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi]
cmp ecx, 0x10
jb 0x413018
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x41300e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413106
mov eax, edx
push ecx
push eax
call fcn.0051ec14
add esp, 8
push 0x20
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
push esi
mov byte [esi + 8], 0
call fcn.0051ec14
mov eax, dword [edi + 0x60]
add esp, 8
mov esi, ebx
cmp ebx, eax
jne 0x412fe2
push 0x20
push eax
call fcn.0051ec14
mov eax, dword [edi + 0x58]
add esp, 8
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x58]
mov dword [eax + 4], eax
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x58]
cmp esi, eax
je 0x413096
mov ecx, dword [esi + 8]
mov ebx, dword [esi]
test ecx, ecx
je 0x413082
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
push 0xc
push esi
call fcn.0051ec14
mov eax, dword [edi + 0x58]
add esp, 8
mov esi, ebx
cmp ebx, eax
jne 0x413064
push 0xc
push eax
call fcn.0051ec14
add esp, 8
lea ecx, [edi + 0x38]
call fcn.00412d10
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi]
test eax, eax
je 0x4130c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4130c9
lea ecx, [edi + 8]
jmp 0x4130ef
lea ecx, [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, ecx
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4130ea
mov eax, dword [ecx]
xor edx, edx
mov word [eax], dx
call fcn.00403d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00528129
int3