Function at 0x406950
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5ccc
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x4ccecc]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
xor ecx, ecx
mov word [esp + 0x3c], cx
mov ecx, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4069b0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x3c]
call fcn.004093f0
push 1
mov eax, 0x4b60e8
mov ecx, esi
mov dword [esp + 0x2ac], edi
call fcn.00409310
mov ecx, dword [esp + 0x3c]
mov esi, 8
cmp dword [esp + 0x50], esi
jae 0x4069f1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x8c]
jmp 0x406a00
movzx eax, word [ecx]
add ecx, 2
add edx, 2
cmp ax, di
jne 0x406a00
lea edx, [esp + 0x18]
push edx
call fcn.00430ce0
mov byte [esp + 0x2a8], 1
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x50], esi
jae 0x406a2e
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
call fcn.00402400
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
jbe 0x406a47
call fcn.0044ea2b
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
lea edi, [esi + 4]
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], esi
jbe 0x406a61
call fcn.0044ea2b
test ebx, ebx
je 0x406a6b
cmp ebx, dword [esp + 0x18]
je 0x406a70
call fcn.0044ea2b
lea ebx, [edi - 4]
cmp ebx, esi
je 0x406b04
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x406a9e
call fcn.0044ea2b
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x406a94
call fcn.0044ea2b
cmp dword [edi + 0x14], 8
jb 0x406aa2
mov eax, dword [edi]
jmp 0x406aa4
mov eax, dword [eax]
jmp 0x406a8a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x406adf
test esi, esi
jne 0x406ad2
call fcn.0044ea2b
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x406ac8
call fcn.0044ea2b
cmp dword [edi + 0x14], 8
jb 0x406ad6
mov eax, dword [edi]
jmp 0x406ad8
mov eax, dword [esi]
jmp 0x406abe
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x406b00
call fcn.0044ea2b
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x406af4
call fcn.0044ea2b
mov ebx, dword [esp + 0x10]
add edi, 0x1c
jmp 0x406a52
mov eax, dword [esi]
jmp 0x406aea
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x24], edi
jbe 0x406b13
call fcn.0044ea2b
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp ebx, dword [esp + 0x28]
jbe 0x406b26
call fcn.0044ea2b
mov ecx, dword [esp + 0x18]
push edi
push esi
push ebx
push ecx
lea ebx, [esp + 0x40]
lea esi, [esp + 0x28]
call fcn.00408760
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], dx
call fcn.004083f0
push 8
mov eax, 0x4b6424
lea ecx, [esp + 0x58]
mov byte [esp + 0x2ac], 2
call fcn.00409310
cmp dword [esp + 0x6c], 8
mov ecx, dword [esp + 0x58]
jae 0x406b89
lea ecx, [esp + 0x58]
lea eax, [esp + 0x18]
push eax
call fcn.00402400
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
jbe 0x406ba2
call fcn.0044ea2b
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], esi
lea edi, [esi + 4]
lea ecx, [ecx]
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], esi
jbe 0x406bbf
call fcn.0044ea2b
test ebx, ebx
je 0x406bc9
cmp ebx, dword [esp + 0x18]
je 0x406bce
call fcn.0044ea2b
cmp dword [esp + 0x14], esi
je 0x406c66
test ebx, ebx
jne 0x406bfb
call fcn.0044ea2b
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x406bf1
call fcn.0044ea2b
cmp dword [edi + 0x14], 8
jb 0x406bff
mov eax, dword [edi]
jmp 0x406c01
mov eax, dword [ebx]
jmp 0x406be3
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406c3c
test ebx, ebx
jne 0x406c2f
call fcn.0044ea2b
xor eax, eax
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x406c25
call fcn.0044ea2b
cmp dword [edi + 0x14], 8
jb 0x406c33
mov eax, dword [edi]
jmp 0x406c35
mov eax, dword [ebx]
jmp 0x406c17
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x406c62
call fcn.0044ea2b
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x406c55
call fcn.0044ea2b
add dword [esp + 0x14], 0x1c
add edi, 0x1c
jmp 0x406bb0
mov eax, dword [ebx]
jmp 0x406c47
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x24], edi
jbe 0x406c75
call fcn.0044ea2b
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp ebx, dword [esp + 0x28]
jbe 0x406c88
call fcn.0044ea2b
mov edx, dword [esp + 0x18]
push edi
push esi
push ebx
push edx
lea ebx, [esp + 0x40]
lea esi, [esp + 0x28]
call fcn.00408760
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x78], ax
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
call fcn.004083f0
push 8
mov eax, 0x4b6438
lea ecx, [esp + 0x74]
mov byte [esp + 0x2ac], 3
call fcn.00409310
cmp dword [esp + 0x88], 8
mov ecx, dword [esp + 0x74]
jae 0x406cf4
lea ecx, [esp + 0x74]
lea edx, [esp + 0x18]
push edx
call fcn.00402400
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
jbe 0x406d0d
call fcn.0044ea2b
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
add esi, 4
jmp 0x406d20
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x24], ebx
jbe 0x406d2f
call fcn.0044ea2b
test edi, edi
je 0x406d39
cmp edi, dword [esp + 0x18]
je 0x406d3e
call fcn.0044ea2b
cmp dword [esp + 0x14], ebx
je 0x406dd6
test edi, edi
jne 0x406d6b
call fcn.0044ea2b
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x406d61
call fcn.0044ea2b
cmp dword [esi + 0x14], 8
jb 0x406d6f
mov eax, dword [esi]
jmp 0x406d71
mov eax, dword [edi]
jmp 0x406d53
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406dac
test edi, edi
jne 0x406d9f
call fcn.0044ea2b
xor eax, eax
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x406d95
call fcn.0044ea2b
cmp dword [esi + 0x14], 8
jb 0x406da3
mov eax, dword [esi]
jmp 0x406da5
mov eax, dword [edi]
jmp 0x406d87
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x406dd2
call fcn.0044ea2b
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x406dc5
call fcn.0044ea2b
add dword [esp + 0x14], 0x1c
add esi, 0x1c
jmp 0x406d20
mov eax, dword [edi]
jmp 0x406db7
cmp dword [esp + 0x88], 8
jb 0x406ded
mov edx, dword [esp + 0x74]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
cmp dword [esp + 0x6c], 8
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
jb 0x406e1e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00442977
add esp, 4
mov esi, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], dx
test esi, esi
je 0x406e83
mov ebx, dword [esp + 0x28]
cmp esi, ebx
je 0x406e76
add esi, 0x18
cmp dword [esi], 8
jb 0x406e59
mov eax, dword [esi - 0x14]
push eax
call fcn.00442977
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, ebx
jne 0x406e48
mov eax, dword [esp + 0x24]
push eax
call fcn.00442977
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00442977
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x406eb2
mov edx, dword [esp + 0x3c]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0044e200
mov esp, ebp
pop ebp
ret 4