Function at 0x406570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d285
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 3
mov bl, 1
mov esi, dword [ebp + 8]
mov byte [ebp - 0x2a], bl
cmp esi, dword [ebp + 0xc]
je 0x4066f9
mov edi, dword [ebp + 0x14]
xor dl, dl
mov byte [ebp - 0x29], dl
cmp edi, dword [ebp + 0x18]
je 0x40661b
mov ecx, dword [esi + 0x10]
add edi, 0x18
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4065d0
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x4065da
mov ebx, dword [esi]
cmp ecx, dword [edi + 0x10]
jne 0x406602
mov edx, ecx
test ecx, ecx
je 0x4065f8
sub ebx, eax
mov cx, word [ebx + eax]
cmp cx, word [eax]
jne 0x4065ff
add eax, 2
sub edx, 1
jne 0x4065e7
mov dl, 1
mov byte [ebp - 0x29], dl
jmp 0x406602
mov dl, byte [ebp - 0x29]
mov ecx, dword [esi + 0x10]
add edi, 0xc0
lea eax, [edi - 0x18]
cmp eax, dword [ebp + 0x18]
jne 0x4065c6
test dl, dl
jne 0x4066ea
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
mov edi, esi
cmovae ecx, dword [ebp + 0x20]
cmp dword [esi + 0x14], 8
jb 0x406630
mov edi, dword [esi]
mov ebx, dword [esi + 0x10]
cmp ebx, dword [ebp + 0x30]
jne 0x406655
mov edx, ebx
test ebx, ebx
je 0x406651
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x406655
add ecx, 2
sub edx, 1
jne 0x406640
mov al, 1
jmp 0x406657
xor al, al
test al, al
jne 0x4066ea
mov edx, dword [ebp + 0x48]
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, ebx
jb 0x4067f5
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 0x38]
mov ecx, esi
cmovae eax, dword [ebp + 0x38]
cmp dword [esi + 0x14], 8
jb 0x406686
mov ecx, dword [esi]
push ebx
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x2e]
lea ecx, [ebp - 0x28]
call fcn.0040b6b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
test eax, eax
je 0x406785
cmp edx, 8
jb 0x4066ea
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067f0
push edx
push ecx
call fcn.00417807
add esp, 8
add esi, 0x18
cmp esi, dword [ebp + 0xc]
jne 0x4065b3
mov bl, byte [ebp - 0x2a]
lea ecx, [ebp + 8]
call fcn.0040a350
lea ecx, [ebp + 0x14]
call fcn.0040a3d0
mov edx, dword [ebp + 0x34]
cmp edx, 8
jb 0x406743
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067eb
push edx
push ecx
call fcn.00417807
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x4067cd
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4067c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067eb
jmp 0x4067c3
xor bl, bl
cmp edx, 8
jb 0x4066f9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4067b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067f0
push edx
push ecx
call fcn.00417807
add esp, 8
jmp 0x4066f9
push edx
push ecx
call fcn.00417807
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004177f9
mov esp, ebp
pop ebp
ret
call fcn.0041af8c
call fcn.0041af8c
call fcn.0040c400
int3